lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Hungarian notation analyzer and phrase queries
Date Wed, 13 Apr 2005 17:31:45 GMT
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
> searches", and "use power for advanced searches" do.
> 
> Any ideas?

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".

Doug

---------------------------------------------------------------------
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