Hi ,

I have the following entry in my synonym properties

YU,Yeshiva University,Yale University

my college name field has the following mapping

"autocomplete_search":{
               "type":"custom",
       "tokenizer":"whitespace",
               "filter":[
                  "lowercase",
  "syns_filter"
               ]
            },
"autocomplete_index":{
               "type":"custom",
               "tokenizer":"whitespace",
               "filter":[
                  "lowercase",
  "syns_filter",
                  "my_edgeNgram"
               ]
            }

When i query

{
    "fields": [
       "name"
    ],
    "query": {
       "match": {
          "name": {
              "query": "YU"
            }
          }
    }
}

my results are as below:

"name": "Yuba College"
"name": "Yukon Beauty College"
 "name": "Yale University"
"name": "Cambridge Junior College - Yuba City"

Tough "Yale University" matched completely from synonums still the other 
two results are higher up which matched "YU" why?

-paul

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/cf3530d4-1ac8-4ba7-9ac7-e93d4ab2db0e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to