Combining text search + relational search

2004-04-28 Thread Mike_Belasco
I need to somehow aloow users to do a text search and query relational database attributes at the same time. The attributes are basically metadata about the documents that the text search will be perfomed on. I have the text of the documents indexed in Lucene. Does anyone have any advice or

Re: Combining text search + relational search

2004-04-28 Thread Stephane James Vaucher
I'm a bit confused why you want this. As far as I know, but relational db searches will return exact matches without a mesure of relevancy. To mesure relevancy, you need a search engine. For your results to be coherent, you would have to put everything in the lucene index. As for memory

Re: Combining text search + relational search

2004-04-28 Thread Mike_Belasco
Bascially I want to limit the results of the text search by the rows that are returned in a relational search of other attribute data related to the document. The text of the document is just like any other attribute it just needs to be queried differently. Does that make sense? Thanks Mike

Re: Combining text search + relational search

2004-04-28 Thread Otis Gospodnetic
Create a Lucene index from data in DB, and make sure to include PKs in one of the fields (use Field.Keyword). Then query your RDBMS and get back the ResultSet. Then get the PK from each ResultSet and use it to construct a Lucene BooleanQuery, which should include your original query string AND