Challenge: Is dynamic data source possible for DataImportHandler JdbcDataSource?

2012-05-31 Thread Cheng Zhang
Hi, The challenge I'm facing is some sort of dynamic data source. Your valuable input is highly appreciated. Below is my data-config.xml. I have one user database and two company databases. The user table in the user database has four columns which are id + name + company_dbname + company_id.

Re: muticore setup with tomcat

2009-03-17 Thread Cheng Zhang
below is my setup, Context docBase=/home/zhangyongjiang/applications/solr/solr.war debug=0 crossContext=true Environment name=solr/home type=java.lang.String value=/home/zhangyongjiang/applications/solr override=false / /Context then under /home/zhangyongjiang/applications/solr, I have

Re: How can I configure different types in Solr?

2009-03-06 Thread Cheng Zhang
One solr instance has only one doc type. So you have many types, the first option is to use multiple solr server instance. The second option is to use multiple core. In this case, you have one solr sever instance but in the server instance you have more than one core. If you don't want to use

use () in the query string

2009-03-04 Thread Cheng Zhang
Hello, In my case, my query of id_s_i_s_nm:(om_B00114162K*) returned nothing but query id_s_i_s_nm:om_B00114162K* returned the right result. What's the difference between using () or not. Thanks a lot, Kevin

Re: unique result

2009-02-26 Thread Cheng Zhang
it at indexing time, then have a look at https://issues.apache.org/jira/browse/SOLR-799 Otherwise, you might look at https://issues.apache.org/jira/browse/SOLR-236 On Feb 25, 2009, at 6:54 PM, Cheng Zhang wrote: Is it possible to have Solr to remove duplicated query results? For example

unique result

2009-02-25 Thread Cheng Zhang
Is it possible to have Solr to remove duplicated query results? For example, instead of return result name=response numFound=572 start=0 doc str name=productGroup_t_i_s_nmWireless/str /doc doc str name=productGroup_t_i_s_nmWireless/str /doc doc str name=productGroup_t_i_s_nmWireless/str

auto generated document id?

2009-02-22 Thread Cheng Zhang
hello, in solr world, is it possible to have the doc id generated automatically? thx a lot, kevin

Re: auto generated document id?

2009-02-22 Thread Cheng Zhang
://wiki.apache.org/solr/UniqueKey Cheers, Bruno 2009/2/22 Cheng Zhang zhangyongji...@yahoo.com hello, in solr world, is it possible to have the doc id generated automatically? thx a lot, kevin

Re: score filter

2009-02-11 Thread Cheng Zhang
, at 10:01 PM, Cheng Zhang wrote: Hello, Is there a way to set a score filter? I tried +score:[1.2 TO *] but it did not work. Many thanks, Kevin -- Grant Ingersoll http://www.lucidimagination.com/ Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika

Re: score filter

2009-02-11 Thread Cheng Zhang
/Articles/Debugging-Relevance-Issues-in-Search/ On Feb 11, 2009, at 10:16, Cheng Zhang zhangyongji...@yahoo.com wrote: Hi Grant, In my case, for example searching a book. Some of the returned documents are with high relevance (score 3), but some of document with low score (0.01) are useless

score filter

2009-02-10 Thread Cheng Zhang
Hello, Is there a way to set a score filter? I tried +score:[1.2 TO *] but it did not work. Many thanks, Kevin

Re: Decrease warmupTime

2009-02-07 Thread Cheng Zhang
Otis, I did restart the solr server but it may not be enough. I just deleted the tomcat work directory and it works now. No warming anymore. Thanks a lot for your information. -Kevin - Original Message From: Cheng Zhang zhangyongji...@yahoo.com To: solr-user@lucene.apache.org Sent

Decrease warmupTime

2009-02-06 Thread Cheng Zhang
First, I'm new Solr. I have setup a Solr server and added some documents into it. I noticed that as I added more and more docs, the warmupTime became longer and longer. After added 400K docs, I can see the warmupTime is now about 1 minutes. Here is one log entry:

Re: Decrease warmupTime

2009-02-06 Thread Cheng Zhang
On Fri, Feb 6, 2009 at 5:12 PM, Cheng Zhang zhangyongji...@yahoo.com wrote: Is there any way to decrease this warmupTime? Go into solrconfig.xml and reduce (or eliminate) the autowarm counts for the caches. -Yonik

Re: Decrease warmupTime

2009-02-06 Thread Cheng Zhang
Subject: Re: Decrease warmupTime Have you restarted Solr after you made the change? Can you paste your query result cache config? Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch From: Cheng Zhang zhangyongji...@yahoo.com To: solr-user

newbie question --- multiple schemas

2009-01-28 Thread Cheng Zhang
Hello, Is it possible to define more than one schema? I'm reading the example schema.xml. It seems that we can only define one schema? What about if I want to define one schema for document type A and another schema for document type B? Thanks a lot, Kevin