Thank you Jeffry, it was worked. I really missed them to include into the index.
However one field is still null, the “survey” one. It’s the huge json string. I’ve included it also in the index. Please find my index definition below:
{
“name”: “default_fti”,
“type”: “fulltext-index”,
“params”: {
“doc_config”: {
“docid_prefix_delim”: “”,
“docid_regexp”: “”,
“mode”: “type_field”,
“type_field”: “type”
},
“mapping”: {
“default_analyzer”: “en”,
“default_datetime_parser”: “dateTimeOptional”,
“default_field”: “_all”,
“default_mapping”: {
“dynamic”: true,
“enabled”: true,
“properties”: {
“asp”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “asp”,
“store”: true,
“type”: “text”
}
]
},
“category”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “category”,
“store”: true,
“type”: “text”
}
]
},
“customerSiteId”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “customerSiteId”,
“store”: true,
“type”: “text”
}
]
},
“date”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “date”,
“store”: true,
“type”: “datetime”
}
]
},
“market”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “market”,
“store”: true,
“type”: “text”
}
]
},
“name”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “name”,
“store”: true,
“type”: “text”
}
]
},
“projectName”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “projectName”,
“store”: true,
“type”: “text”
}
]
},
“siteName”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “siteName”,
“store”: true,
“type”: “text”
}
]
},
“state”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
“include_in_all”: true,
“include_term_vectors”: true,
“index”: true,
“name”: “state”,
“store”: true,
“type”: “text”
}
]
},
“survey”: {
“enabled”: true,
“dynamic”: false,
“fields”: [
{
"include_in_all": true,
** “include_term_vectors”: true,**
** “index”: true,**
** “name”: “survey”,**
** “store”: true,**
** “type”: “text”**
}
]
}
}
},
“default_type”: “_default”,
“docvalues_dynamic”: true,
“index_dynamic”: true,
“store_dynamic”: false,
“type_field”: “_type”
},
“store”: {
“indexType”: “scorch”,
“kvStoreName”: “”
}
},
“sourceType”: “couchbase”,
“sourceName”: “mobile”,
“sourceUUID”: “27bd2e05b7941694f409a54203f8e11e”,
“sourceParams”: {},
“planParams”: {
“maxPartitionsPerPIndex”: 171,
“numReplicas”: 0
},
“uuid”: “4220046bcc85d4de”
}
What is the recommendation for indexing? If I want to retrieve only some fields I need to include them into the SearchParams and use this index above, or shall I create a new index for this, that includes only these fields?
Thanks again!
Best regards,
Imre