I am indexing string "10 GIPPS STREET BARTON ACT 2600" in elastic 2.4 and 6.3.
Trying to search by search string "26"
Elastic search 2.4 not returning any result, where as 6.3 returning expected result.
Index Create Request in 2.4:
PUT - https://localhost:9200/searchtermtest
{
"mappings": {
"testindex_type": {
"properties": {
"SearchTerm": {
"type": "string"
}
}
}
}
}
Add Index Request:
https://localhost:9200/searchtermtest/searchtermtest_type/1
{
"SearchTerm": "10 GIPPS STREET BARTON ACT 2600"
}
My search call request in 2.4 is:
{
"from" : 0,
"size" : 10,
"query" : {
"bool" : {
"must" : {
"match_all" : { }
},
"filter" : {
"bool" : {
"must" : {
"match" : {
"SearchTerm" : {
"query" : "60",
"type" : "boolean",
"boost" : 1.0,
"fuzziness" : 2
}
}
}
}
}
}
}
}
When I am indexing same string "10 GIPPS STREET BARTON ACT 2600" in 6.3 in the same way as 2.4 and searching the strinf "26", it returns the expected result.
Search Request in 6.3:
{
"query": {
"bool": {
"must": [{
"match_all": {
}
}],
"filter": {
"bool": {
"must": {
"match": {
"SearchTerm": {
"fuzziness": 2,
"query": "26",
"boost": 1.0
}
}
}
}
}
}
},
"from": 0,
"size": 10
}
Surprisingly when I am searching any other string in 2.4 like "260" or "60" or "00" it gives expected result. Problem only with search string "26"