Re: Mapping Lucene search results with a relational database

2012-07-03 Thread mark harwood
o but it is one that I've encountered many times. Cheers Mark - Original Message - From: Jochen Hebbrecht To: java-user@lucene.apache.org Cc: Sent: Tuesday, 3 July 2012, 8:56 Subject: Mapping Lucene search results with a relational database Hi all, I have an application w

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread Jochen Hebbrecht
Hi Feng, Hmmm, but Document is a Java object? It holds all kinds of other objects like Sets, Lists, Maps, Strings, Doubles, ... Can we store Java objects in a Lucene index? Jochen 2012/7/3 feng lu > and you can add d as a field with STORE and NOT_ANALYZER tag to it if d in > Document is not l

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread Jochen Hebbrecht
Hi Chris, Yeah! That's a possibility, thanks :-)! Jochen 2012/7/3 Chris Lu > Can you index the rule1 and rule2 fields into the documents, and when > searching with the keywords, also append rule1:foo and rule2:bar to the > query? > > Chris > - > Instant Scalable Full-T

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread feng lu
and you can add d as a field with STORE and NOT_ANALYZER tag to it if d in Document is not large. On Tue, Jul 3, 2012 at 4:04 PM, Chris Lu wrote: > Can you index the rule1 and rule2 fields into the documents, and when > searching with the keywords, also append rule1:foo and rule2:bar to the > qu

Re: Mapping Lucene search results with a relational database

2012-07-03 Thread Chris Lu
Can you index the rule1 and rule2 fields into the documents, and when searching with the keywords, also append rule1:foo and rule2:bar to the query? Chris - Instant Scalable Full-Text Search On Any Database/Application site: http://www.dbsight.net demo: http://search.dbs

Mapping Lucene search results with a relational database

2012-07-03 Thread Jochen Hebbrecht
Hi all, I have an application which holds a list of documents. These documents are indexed using Lucene. I can search on keywords of the documents. I loop the TopDocs and get the ID field (of each Lucene doc) which is related to the ID column in my relational database. From all these ID's, I creat