lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Tignor <>
Subject Phrase query with terms at same location
Date Wed, 18 Nov 2009 22:20:08 GMT

I have indexed words in my documents with part of speech tags at the same
location as these words using a custom Tokenizer as described, very
helpfully, here:

I would like to do a search that retrieves documents when a given word is
used with a specific part of speech, e.g. all docs where "report" is used as
a noun.

I was hoping I could use something like a PhraseQuery with "report _n" (_n
is my noun part of speech tag) with some sort of identifier that describes
the words as having to be at the same location - like a null slop or

Any thoughts on how to do this?

thanks so much,



Christopher Tignor | Senior Software Architect
155 Spring Street NY, NY 10012
p.212-285-8600 x385 f.212-285-8999

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message