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 satisfactorily. Best Erick On Tue, Dec 23, 2008 at 5:24 AM, csantos <claudia.cm.san...@gmail.com>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: > http://www.nabble.com/QueryWrapperFilter-tp21142252p21142252.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >