lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seeta Somagani" <>
Subject Inside a Boolean Query
Date Tue, 28 Feb 2006 21:47:58 GMT


I need to return the context of the terms along with the results.

The approach that I'm using is to

1)       detect what kind of query it is, 

2)       extract the terms of the query, 

3)       fetch the context of the individual terms, and 

4)       finally join them depending on the query.


The problem is that all user entered queries are either PhraseQuerys,
BooleanQuerys, or TermQuerys.

PhraseQuerys and TermQuerys can easily be done, but the problem is with
a BooleanQuery.

I'm unable to find out what Querys make up the BooleanQuery. That
matters when there are a combination of Querys like a PhraseQuery and a
TermQuery inside the BooleanQuery. 

Is there a way that I can detect the composition of a BooleanQuery,
rather than just extract the individual terms?



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