Re: Integrating Solr with Database

2012-11-12 Thread Gora Mohanty
On 12 November 2012 13:54, 122jxgcn wrote: > I was thinking of using RESTful API instead of client application accessing > database directly. > Something like, client application opens url named http://(server > url)/updatedb?(id of document), > or something similar, then Java logic inside the Sol

Re: Integrating Solr with Database

2012-11-12 Thread Gora Mohanty
On 12 November 2012 13:17, 122jxgcn wrote: [...] >> If you still want to do what you had in mind, you should handle >> that as part of your indexing process, i.e., update both Solr and >> the database at the same time > > I have thought about that, but I could not figure out how to update database

Re: Integrating Solr with Database

2012-11-11 Thread 122jxgcn
> This might make sense if you were using Solr to search for the > ID of an object in the database with relations to other objects. > However, if all you are doing is retrieving the file path/URL, why > not index that into Solr, and get it directly from Solr? That's what I'm doing right now but si

Re: Integrating Solr with Database

2012-11-11 Thread Gora Mohanty
On 12 November 2012 13:00, 122jxgcn wrote: [...] > What I want to do right now is that whenever the client indexes document and > uploads the raw file, > database gets update with the pairs of (Document ID in Solr, path of the raw > file inside server). > So on search result page, instead of givin