You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Vicky_Dev <vi...@yahoo.co.in> on 2008/12/20 19:54:04 UTC

DataImportHandler for updating indexes and DiscMax Request Handler for query

Hi Team,

I am currently using DiscMax Request Handler for indexing and querying to
Solr. DiscMax Request Handler (Ranking / Boosting/ Blocking etc.)  is
working correclty. 

Issue: 
There are different database table on which query was done and accordingly
Solr index will be created. 
If any contents in any of database table are changed (delete/update/insert),
index should be updated (Java class/webservice) should get called to update
index. Logic for creating/ updating index is very specific to requirements

After going through Solr 1.3 documentation, Dataimporthandler seems to be
good one. Since after changes in database table, it will automatically
update indexes.


Is it possible to 
--customize dataimporthandler to call webservice and send updated data (e.g.
product ID's in PRODUCTS table) to webservice.

--use Data importhandler for updating indexes and DiscMax Request Handler
for query

We are using Solr 1.3 version and oracle 10G database.

Any pointers will be helpful

Thanks
~Vikrant

Vikrant Shirbhate


-- 
View this message in context: http://www.nabble.com/DataImportHandler-for-updating-indexes-and-DiscMax-Request-Handler-for-query-tp21107873p21107873.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: DataImportHandler for updating indexes and DiscMax Request Handler for query

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Sun, Dec 21, 2008 at 12:24 AM, Vicky_Dev
<vi...@yahoo.co.in>wrote:

>
> Hi Team,
>
> I am currently using DiscMax Request Handler for indexing and querying to
> Solr. DiscMax Request Handler (Ranking / Boosting/ Blocking etc.)  is
> working correclty.


DisMax is used for querying only. It does not support indexing documents.


>
> Issue:
> There are different database table on which query was done and accordingly
> Solr index will be created.
> If any contents in any of database table are changed
> (delete/update/insert),
> index should be updated (Java class/webservice) should get called to update
> index. Logic for creating/ updating index is very specific to requirements
>
> After going through Solr 1.3 documentation, Dataimporthandler seems to be
> good one. Since after changes in database table, it will automatically
> update indexes.


This is not correct. DataImportHandler does not automatically update indexes
if the database changes. Someone needs to ask DataImportHandler to do a
full/delta import.


> Is it possible to
> --customize dataimporthandler to call webservice and send updated data
> (e.g.
> product ID's in PRODUCTS table) to webservice.
>

Does the webservice update the index? If yes, then you don't need it because
DataImportHandler will update the indexes when called.


> --use Data importhandler for updating indexes and DiscMax Request Handler
> for query


Yes this is possible.

PS: It is DisMax and not "DiscMax"

-- 
Regards,
Shalin Shekhar Mangar.