I have an index built with Full Text Search:
{
"type": "fulltext-index",
"name": "i_fts",
"uuid": "63f420271d739666",
"sourceType": "gocbcore",
"sourceName": "img_fts",
"sourceUUID": "d10305c69fc1d9fcd0079d0ebffb211c",
"planParams": {
"maxPartitionsPerPIndex": 1024,
"indexPartitions": 1
},
"params": {
"doc_config": {
"docid_prefix_delim": "",
"docid_regexp": "",
"mode": "scope.collection.type_field",
"type_field": "type"
},
"mapping": {
"analysis": {},
"default_analyzer": "standard",
"default_datetime_parser": "dateTimeOptional",
"default_field": "_all",
"default_mapping": {
"dynamic": false,
"enabled": false
},
"default_type": "_default",
"docvalues_dynamic": false,
"index_dynamic": false,
"store_dynamic": false,
"type_field": "_type",
"types": {
"_default._default": {
"dynamic": false,
"enabled": true,
"properties": {
"np": {
"dynamic": false,
"enabled": true,
"fields": [
{
"analyzer": "en",
"include_in_all": true,
"index": true,
"name": "np",
"store": true,
"type": "text"
}
]
},
"pp": {
"dynamic": false,
"enabled": true,
"fields": [
{
"analyzer": "en",
"include_in_all": true,
"index": true,
"name": "pp",
"store": true,
"type": "text"
}
]
},
"s": {
"dynamic": false,
"enabled": true,
"fields": [
{
"include_in_all": true,
"index": true,
"name": "s",
"type": "number"
}
]
}
}
}
}
},
"store": {
"indexType": "scorch",
"segmentVersion": 15
}
},
"sourceParams": {}
}
the document format is:
{
"pp": "lazy brown fox",
"np": "",
"s": 7421065288944210239,
"m": {
"t": "fts"
}
}
if I search for fox
or lazy brown
I am getting results, but in a document where the JSON is like this:
{
"pp": "honey bunny",
"np": "",
"s": 643734567345634576,
"m": {
"t": "fts"
}
}
If I search for the s
field “643734567345634576” I am getting the document, so, it seems that the document is indexed.
When I search (in the UI or in the PHP SDK ) for honey
, or bunny
or honey bunny
I am not getting any results.
What could be the problem and how I can debug further?