Re: index writer in searchComponent

2012-07-02 Thread Dmitry Kan
Hi Peyman, It is, at least from your perspective and probably system design. In our case for example, we have slightly different approach, where a user query is formed on a client side and then caught and pre-processed on a backend side before being sent over to solr. That backend side would be

Re: index writer in searchComponent

2012-07-01 Thread Dmitry Kan
Hi Peyman, Could you just use solrj api for this purpose? That is, ask via solrj api 1-2 and perform 3 if entity (assuming you mean document or some field value by X) didn't exist, i.e. add it to the index. // Dmitry On Sun, Jul 1, 2012 at 6:03 AM, Peyman Faratin pey...@robustlinks.comwrote:

Re: index writer in searchComponent

2012-07-01 Thread Peyman Faratin
Hi Dmitry Which SolrJ API would I use to receive the user query? I was under the impression the request handler mechanism was the (RESTFUL) interface between user query and the index/s. thank you Peyman On Jul 1, 2012, at 10:11 AM, Dmitry Kan wrote: Hi Peyman, Could you just use solrj api

Re: index writer in searchComponent

2012-06-30 Thread Erick Erickson
Lots of the index modification (all of it?) has been removed in 4.0 from IndexReaders... It seems like you could always get the directory and open a SolrIndexWriter wherever you wanted, but I'm not sure it's a good idea, are there other processes that will be writing to the index at the same

Re: index writer in searchComponent

2012-06-30 Thread Peyman Faratin
Hi Erik The workflow I'd like to implement is 1- search the index using the incoming query 2- the query is of the type does entity X exist 3- if X does not exist in the index then I'd like to add X to the index Currently I am using a custom search component to achieve this by creating a

index writer in searchComponent

2012-06-28 Thread Peyman Faratin
Hi Is it possible to add a new document to the index in a custom SearchComponent (that also implements a SolrCoreAware)? I can get a reference to the indexReader via the ResponseBuilder parameter of the process() method using rb.req.getSearcher().getReader() But is it possible to actually add