I am not using edismax (eventually I would like to get there) but I'm just testing with standard query right now. Original posting:
I'm trying to figure out why the multi-word synonym expansion is not working correctly (or, at least what I'm misunderstanding). Specifically, when I test a standard query with Solr Admin it appears to still split on whitespace. Here is my setup: - Solr 7.2.1 - synonym example: LCD => liquid crystal display - q=myfield:LCD - added parameter: sow=false - myfield schema looks like (analyzer both applicable to index and query time): ---- <fieldType name="myfield" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.StandardTokenizerFactory" /> <filter class="solr.SynonymGraphFilterFactory" ignoreCase="true" synonyms="synonyms.txt"/> ... ---- When debugging the query, Solr Admin shows the parsed query as: ---- myfield:liquid myfield:crystal myfield:display ---- (default operator being OR), as you can see it would incorrectly match on any of those words, but not all, which is what I would expect... Should it not do a phrase query search for the exact translated synonym, "liquid crystal display"? On Wed, Aug 15, 2018 at 5:01 PM, Doug Turnbull < dturnb...@opensourceconnections.com> wrote: > Also share your fieldType settings for myfield as well from your schema > On Wed, Aug 15, 2018 at 8:00 PM Doug Turnbull < > dturnb...@opensourceconnections.com> wrote: > > > Aside from the screenshot issue, one thing to check: are you searching > > with defType=edismax ? > > > > As in > > q=lcd&qf=myfield&sow=false&defType=edismax > > > > ? > > > > Also sow=false should the the default on Solr 7 and above > > > > Doug > > > > On Wed, Aug 15, 2018 at 6:27 PM Roy Lim <royster....@gmail.com> wrote: > > > >> I'm trying to figure out why the multi-word synonym expansion is not > >> working > >> correctly. Specifically, when I test a standard query with Solr Admin > it > >> is > >> still splitting on whitespace. > >> > >> Here is my setup: > >> - Solr 7.2.1 > >> - synonym LCD => liquid crystal display > >> - q=myfield:LCD > >> - added: sow=false > >> - myfield looks like: > >> > >> > >> Solr Admin shows the parsed query looks like: > >> > >> myfield:liquid myfield:crystal myfield:display > >> > >> (default operator being OR), which would incorrectly match documents > with > >> any of those words, but not all, which is what I would expect... > >> > >> > >> > >> > >> > >> -- > >> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html > >> > > -- > > CTO, OpenSource Connections > > Author, Relevant Search > > http://o19s.com/doug > > > -- > CTO, OpenSource Connections > Author, Relevant Search > http://o19s.com/doug >