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 Giovanni Bricconi <gi...@banzai.it> on 2013/12/23 16:32:08 UTC

question about synonymfilter

hello

suppose I have this synonim
abxpower => abx power

and suppose you are indexing "abxpower pipp"

>From the analyzer I see that abxpower is splitted in two words, but the
second word "power" overlaps the next one
text raw_bytes keyword position start end type positionLength
abxpower [61 62 78 70 6f 77 65 72] false 1 0 8 word 1
pipp [70 69 70 70] false 2 9 14 word 1


   SF
  text raw_bytes positionLength type start end position keyword
abx [61 62 78] 1 SYNONYM 0 8 1 false
pipp [70 69 70 70] 1 word 9 14 2 falsepower [70 6f 77 65 72] 1 SYNONYM 9 14
2 false


Is this correct? I noticed that WordDelimitedFilter instead changes start
end and position. This is what appens for abx-power pippo

 WDF
  text raw_bytes start end type position positionLength
abx [61 62 78] 0 3 word 1 1power [70 6f 77 65 72] 4 9 word 2 1
pippo [70 69 70 70 6f] 10 15 word 3 1