lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: QueryWrapperFilter
Date Tue, 23 Dec 2008 14:39:07 GMT
My first bit of advice would be to step back and take a deep
breath and "take off your DB hat". Lucene is a *text* search
application, not an RDBMS.

The usual solution is to flatten your data representation when
you index so you can use simpler searches. Others have
posted that it's hard to use Lucene to express relationships


On Tue, Dec 23, 2008 at 5:24 AM, csantos <>wrote:

> Hello,
> I need to filter a FullTextSearch against a query, that means, i search a
> term in a indexed entity "A", A contains a embedded Index "B", entity B has
> a m:1 bidirectional relationship with entity "C", the foreign Key in "B" is
> "c_id".  My filter condition would be like "filter the fulltext search for
> entries where the c_id equals some value", where value is given.
> I thought of using the QueryWrapperFilter. But the JavaDoc says for the
> TermQuery: "A Query that matches documents containing a term.". My problem
> is that the field I want to use do not appear on the Lucene Index. Which is
> the best approach?
> thanks in advanced
> --
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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