lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Lucene for dynamic data retrieval
Date Mon, 03 Aug 2009 03:59:33 GMT
Hi Satish,

Lucene doesn't enforce an index schema, so each document can have a different set of fields.
 It sounds like you need to write a custom indexer that follows your custom rules and creates
Lucene Documents with different Fields, depending on what you want indexed.

You also mention searching and retrieval of data from DB.  This, too, sounds like a custom
search application - there is nothing in Lucene that uses a (R)DBMS to retrieve field values.

Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR



----- Original Message ----
> From: Findsatish <findsatish@gmail.com>
> To: java-user@lucene.apache.org
> Sent: Friday, July 31, 2009 7:13:47 AM
> Subject: Lucene for dynamic data retrieval
> 
> 
> Hi All,
> I am new to Lucene and I am working on a search application.
> 
> My application needs dynamic data retrieval from the database. That means,
> based on my previous step output, I need to retrieve entries from the DB for
> the next step.
> 
> For example, if my search query contains "Name" field entry, I need to
> retrieve the "Designations" from the DB that are matched with the identified
> "Name" in the query.
>                     if there is no "Name" identified in the query, then I
> need to retrieve ALL the "Designations" from the DB.
> 
> In the next step, if "Designation" is also identified in the query, then I
> need to retrieve the "Departments" from the DB that are matched with this
> "Designation".
>                         if there is no "Designation" identified, then I need
> to retrieve ALL the "Departments" from the DB.
> 
> Like this, there are around 6-7 steps, all are dependent on the previous
> step output.
> 
> In this scenario, I would like to know whether I can use Lucene for creating
> the index? If so, How can I use it?
> 
> Any help is highly appreciated.
> 
> Thanks,
> Satish
> -- 
> View this message in context: 
> http://www.nabble.com/Lucene-for-dynamic-data-retrieval-tp24754777p24754777.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message