My Settings/Mapping files
PUT loalhost:9200/persondb
{
"settings": {
"analysis": {
"filter": {
"autocomplete_filter": {
"type": "edge_ngram",
"min_gram": 2,
"max_gram": 15
}
},
"analyzer": {
"autocomplete": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"lowercase",
"autocomplete_filter"
]
},
"rock_field":{
"type": "custom",
"tokenizer": "whitespace",
"filter": "lowercase"
}
}
}
}
}
PUT localhost:9200/persondb/userData/_mapping
{
"userData": {
"properties": {
"FirstName": {
"type": "string",
"index_analyzer": "autocomplete",
"search_analyzer": "rock_field"
},
"LastName": {
"type": "string",
"index_analyzer": "autocomplete",
"search_analyzer": "rock_field"
},
"CurrentCompany": {
"type": "string",
"analyzer": "rock_field"
},
"CurrentLocation": {
"properties": {
"City": {
"type": "string",
"analyzer": "rock_field"
},
"Country": {
"type": "string",
"analyzer": "rock_field"
},
"State": {
"type": "string",
"analyzer": "rock_field"
}
}
},
"ProfileTitle": {
"type": "string",
"analyzer": "rock_field"
}
}
}
}
http://localhost:9200/user/search passing this query string = {"q":"san"}
When I run this query from POSTMAN am getting this results with only 2 elements, and I need all the elements returned.
[
{
"Id": "57236cbe80eed110c8b739f5",
"Score": 0.7097881
},
{
"Id": "5739d95d80eed7100c32a59d",
"Score": 0.48913243
},
{
"Id": "57332dec80eed60a0492b68e",
"Score": 0.3120335
},
..
.....
]
thanks. any help will be appreciated.