Hi,

If you save all fields you want to display in search results, then you don't 
need to go to the database at search time.
If you do not save all fields you want to display in search results, then you 
will need to first query Solr, get IDs of all matches you want to display, and 
then from your application do a SELECT with those IDs.

DataImportHandler is for indexing data from DB and is not used at search-time.

HTH

OtisĀ 
----
Performance Monitoring SaaS for Solr - 
http://sematext.com/spm/solr-performance-monitoring/index.html 


----- Original Message -----
> From: Anderson vasconcelos <anderson.v...@gmail.com>
> To: solr-user@lucene.apache.org; Otis Gospodnetic <otis_gospodne...@yahoo.com>
> Cc: 
> Sent: Friday, January 20, 2012 8:33 AM
> Subject: Re: HIbernate Search and SOLR Integration
> 
> Otis,
> The DataImportHandler is not only for import data from database? I don't
> wanna to import data from database. I just wanna to persist the object in
> my database and after send this saved object to SOLR. When the user find
> some documentĀ  using the SOLR search, i need to return this persistent
> object (That was found in SOLR with the contents saved in database). It's
> possible do this with DataImporHandler? If not possible, has other solution
> or i have to make this "merge" in my aplication using "in 
> clause" or
> temporary table?
> 
> Thanks
> 
> 2012/1/20 Otis Gospodnetic <otis_gospodne...@yahoo.com>
> 
>>  Hi Anderson,
>> 
>>  Not sure if you saw http://wiki.apache.org/solr/DataImportHandler
>> 
>> 
>>  Otis
>> 
>>  ----
>>  Performance Monitoring SaaS for Solr -
>>  http://sematext.com/spm/solr-performance-monitoring/index.html
>> 
>> 
>> 
>>  ----- Original Message -----
>>  > From: Anderson vasconcelos <anderson.v...@gmail.com>
>>  > To: solr-user <solr-user@lucene.apache.org>
>>  > Cc:
>>  > Sent: Thursday, January 19, 2012 10:08 PM
>>  > Subject: HIbernate Search and SOLR Integration
>>  >
>>  > Hi.
>>  >
>>  > It's possible to integrate Hibernate Search with SOLR? I wanna use
>>  > Hibernate Search in my entities and use SOLR to make the work of index
>>  > and search. Hibernate Search call SOLR to find in index and than find
>>  > the respective objects in database. Is that possible? Exists some
>>  > configuration for this?
>>  >
>>  > If it's not possible, whats the best strategy to unify the search 
> on
>>  > index with search in database using SOLR? Manually join of results
>>  > from index in database query using temporary table or in clause?
>>  >
>>  > Thanks
>>  >
>> 
>

Reply via email to