Paul Smith wrote:
So it sounds like there isn't a perfect solution, but I think the best
tradeoff for me is to put them all in the same position unless
anyone has more input on the subject?
If they're all at the same position you can still use slop to match the
phrase. So if 'power', 'query'
Thanks for your help guys!
If you put the term query at position 2 then you need slop to find "Use
PowerQuery for advanced searches", which is the exact text in the
document. I think I'd rather have that phrase query work without any
slop, and require some slop for "use power query for advanced
: Another approach would be to index this as:
:
: token: use power query for advanced searches
: powerquery
: position:0 1 2 3 45
:
: Then use phrase queries with slop=1, to permit a one-token gap when
: someone searches for "use powe
Paul Smith wrote:
I have written a custom analyzer to tokenize PowerQuery into 'power',
'query, and 'powerquery' and change the position increment to 0, but I
don't quite get the desired behavior. The phrase query "use power query
for advanced searches" does not match, but "use query for advanced
Chris wrote
...As Erik points out in that thread, when dealing with a dictionary of
"singleword" => ["multi" "word"], and ["multi" "word"] => "singleword"
synonyms a very good/simple approach is to use an analyzer that allways
normalizes down to the single word version (as a single token)
This allo
This question is very similar to a recent/current thread sith the subject
"How to include a multi-word synonym to a word when indexing?" ...
http://www.mail-archive.com/java-user@lucene.apache.org/msg00546.html
...As Erik points out in that thread, when dealing with a dictionary of
"singleword"