You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Gianpiero Sportelli <gi...@celi.it> on 2018/10/25 13:01:35 UTC
Question about SynonymGraphFilter
Hi,
I have a question about SynonymGraphFilter.
During the query parsing I expected a query phrase for multi word
synonyms but the query produced is an or of all the tokens that compose
the multi word. is the correct behavior? I attach a test for this
question. Examples: query: "text analysis is a serious thing" (quoted
query) Query after parsing: BooleanQuery -> spanNear([spanOr([text:nlp,
spanNear([text:text, text:analysis], 0, true)]), text:is, text:a,
text:serius, text:thing], 0, true) in this query nlp is a synonym of
text analysis query: the labrador is an awesome dog Query after parsing:
(((+text:a +text:big +text:dog) (+text:the +text:labrador))) (text:is)
(text:an) (text:awesome) (((+text:mammal +text:animal) text:dog)) Query
expected: (spanOr([spanNear([text:a ,text:big, text:dog],0,true),
spanNear([text:the, text:labrador], 0, true)])) (text:is) (text:an)
(text:awesome) (spanOr([spanNear([text: mammal, text:animal],0, true),
text:dog]))
in this query the synonyms are:
the labrador -> a big dog
dog -> mammal animal
Thank you,
Gianpiero Sportelli
--
*CELI srl*
via San Quintino, 31 - Torino
<https://www.google.com/maps/place/Via+S.+Quintino,+31,+10121+Torino+TO/@45.0668691,7.6684529,17z/data=%213m1%214b1%214m5%213m4%211s0x47886d13c6b49f81:0x2b74ae2a12fca9de%218m2%213d45.0668653%214d7.6706416>
Torino IT – 10121
<https://www.google.com/maps/place/Via+S.+Quintino,+31,+10121+Torino+TO/@45.0668691,7.6684529,17z/data=%213m1%214b1%214m5%213m4%211s0x47886d13c6b49f81:0x2b74ae2a12fca9de%218m2%213d45.0668653%214d7.6706416>
*
*
*T *+39 011 5627115
*W *www.celi.it <https://www.celi.it/>