lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Hungarian notation analyzer and phrase queries
Date Wed, 13 Apr 2005 17:36:44 GMT

: Another approach would be to index this as:
:
: token:       use   power      query for advanced searches
:                     powerquery
: position:    0     1          2     3   4        5
:
: Then use phrase queries with slop=1, to permit a one-token gap when
: someone searches for "use powerquery for advanced searches".

right, but in your example "1" is a magic number that works because we are
only dealing with "multi-word synonyms" of 2 words.  in general, this
approach requires that you pick some some N such that you are garunteed no
synonym contains more then N-1 words, and set the token positions to...

 token:       use   powerquery         for  advanced  searches
                    power      query
 position:    0     N          N+1     2N   3N        4N





-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message