Comments on: London Elasticsearch User Group – September Meetup http://www.flax.co.uk/blog/2014/09/04/london-elasticsearch-user-group-september-meetup/ The Open Source Search Specialists Tue, 12 Feb 2019 14:44:32 +0000 hourly 1 https://wordpress.org/?v=4.9.8 By: Tom Mortimer http://www.flax.co.uk/blog/2014/09/04/london-elasticsearch-user-group-september-meetup/#comment-26636 Mon, 08 Sep 2014 08:27:27 +0000 http://www.flax.co.uk/blog/?p=1260#comment-26636 I’m not sure I understand the problem correctly, but are you indexing with any stemming for text fields? (e.g. have you set up any custom mappings?) “term” queries bypass analysis, so may not match stemmed fields the way you expect.

]]>
By: Bike Crash http://www.flax.co.uk/blog/2014/09/04/london-elasticsearch-user-group-september-meetup/#comment-26635 Sun, 07 Sep 2014 05:14:32 +0000 http://www.flax.co.uk/blog/?p=1260#comment-26635 I have a problem with understanding of ElasticSearch.

Here’s my example:

for query:

curl -XPOST ‘http://localhost:9200/_search’ -d ‘
{
“query”: {
“term”: {
“main_place”: “katowice”
}
}
}’

i have 0 results, but i have documents with main_place = katowice
i have a clue:

curl -XPOST ‘http://localhost:9200/_search’ -d ‘
{
“query”: {
“term”: {
“main_place”: “katowic”
}
}
}’

it gives me results with main_place = katowice and one document with main_place = katowic
i see that problem is with katowic is prefix of katowice

there is no problem with query:

curl -XPOST ‘http://localhost:9200/_search’ -d ‘
{
“query”: {
“term”: {
“main_place”: “warszawa”
}
}
}’

i get good results, but there is no “warszaw” in main_places.

I’m waiting for solutions, i know that “text” instead for “term” works, but not with “custom_filter_score” filters.

]]>