Re: getting error when ":" in the query

2010-01-31 Thread NarasimhaRaju
Hi, you have to escape lucene special characters present in usersearch term before handing it over to QueryParser. for more info look at http://lucene.apache.org/java/2_9_1/queryparsersyntax.html#Escaping%20Special%20Characters “ There are only 10 types of people in this world:- Those who und

Re: Facet search concept problem

2010-02-15 Thread NarasimhaRaju
Hi, you should have a new field in your index say 'type' which will have values 'news','article' and 'blog' for documents news,article and blog respectively. when searching with facet's elabled make use of this 'type' field then you will get what you wanted. Regards, P.N.Raju, ___

Re: Query or FilterQuery for exact field match

2010-02-16 Thread NarasimhaRaju
Hi, using filterQuery(fq) is more efficient because SolrIndexSearcher will make use of filterCache and in your case it returns entire set from the cache instead of searching from the entire index. more info about solrCaches at http://wiki.apache.org/solr/SolrCaching#filterCache Regards, P.N

Re: optimize is taking too much time

2010-02-18 Thread NarasimhaRaju
Hi, You can also make use of autocommit feature of solr. You have two possibilities either based on max number of uncommited docs or based on time. see  of your solrconfig.xml. Example:-                60    once your done with adding run final optimize/commit. Regards, P.N.Raju,

Interleaving the results

2010-05-28 Thread NarasimhaRaju
Hi, how to achieve custom ordering of the documents when there is a general query? Usecase: Interleave documents from different customers one after the other. Example: Say i have 10 documents in the index belonging to 3 customers (customer_id field in the index ) and using query *:* so all the d

Re: Interleaving the results

2010-06-01 Thread NarasimhaRaju
, From: Lance Norskog To: solr-user@lucene.apache.org Sent: Sat, May 29, 2010 3:04:46 AM Subject: Re: Interleaving the results There is no interleaving tool. There is a random number tool. You will have to achive this in your application. On Fri, May 28, 2010 at 8:23 AM, NarasimhaRaju wrote: >

RejectedExecutionException when shutttingdown corecontainer

2010-06-17 Thread NarasimhaRaju
Hi, I am using solr 1.3 and when indexing i am getting RejectedExecutionException after processing the last batch of update records from the database. happening when coreContainer.shutdown() is called after processing the last record. i have autocommits enabled based on maxTime which is 10 minut