lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Smith" <>
Subject Hungarian notation analyzer and phrase queries
Date Tue, 12 Apr 2005 23:42:23 GMT
I am writing a document management system for my company, and many of
our feature names are in Hungarian notation (PowerQuery,
TransactionManager, etc.). This can make it hard to find some things
with a default analyzer.

I'd like to be able to index text like "Use PowerQuery for advanced
searches" and be able to find it with "use power query for advanced
searches". Note the space between power and query.

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?

I noticed that Dave at has written a JavaDocAnalyzer that has
the same problem. Go to and search for "An instance of
HashMap has two parameters" and "An instance of Hash Map has two

I realize that with my custom analyzer I can find it without using a
phrase query, but it would be nice.


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the TenFold Postmaster (

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message