Re: Quick SolrJ query how-to question.

2013-05-14 Thread Jienan Duan
hi, the solrQuery.setQuery() method just set the 'q' param in the query string. You need call other method to set up all necessary param: solrQuery.setFields(); --> this set up the 'fl' param solrQuery.setStart(); --> this set up the 'start' param solrQuery.setRows(); --> this set up the 'rows' par

Re: Quick SolrJ query how-to question.

2013-05-14 Thread Jienan Duan
ic. > > Thanks in advance, > > > 2013/5/14 Jienan Duan > > > hi, > > the solrQuery.setQuery() method just set the 'q' param in the query > string. > > You need call other method to set up all necessary param: > > solrQuery.setFie

Re: Quick SolrJ query how-to question.

2013-05-14 Thread Jienan Duan
Query with the setters methods defined. > > Regards, > > > > 2013/5/14 Jienan Duan > > > I don't see any method in SolrServer like what you want.But I think you > > just need write some code with HttpClient ,make a http request use the > > complete query string.

Re: It seems a bug of deal with synonym.

2013-03-01 Thread Jienan Duan
Hi,liwei. I have met this problem before,and my solution is expanding synonyms first ,then normalizing.For example,'北京市' and ‘北京’ are synonyms,in indexing process,my programme convert them to '北京市',and in searching process do the same logic. In solr.SynonymFilterFactory,posIncreament between synon

MySQL Exception: Communications link failure WITH DataImportHandler

2012-08-15 Thread Jienan Duan
ataImportHandler failed. I'm trying to read Solr source code and found that it seems Solr has it's own ClassLoader.I'm not sure if it goes wrong with Tomcat on some specific configuration. Dose anyone know how to fix this problem? Thank you very much. Best Regards. Jienan Duan -- -- 不走弯路,就是捷径。 http://www.jnan.org/

Re: MySQL Exception: Communications link failure WITH DataImportHandler

2012-08-16 Thread Jienan Duan
Hi all: I have resolved this problem by configuring a jndi datasource in tomcat. But I still want to find out why it throw an exception in DIH when I configure datasource in data-configure.xml but a jndi resource. Regards. 2012/8/16 Jienan Duan > Hi all: > I'm using DataImportHandle

Re: MySQL Exception: Communications link failure WITH DataImportHandler

2012-08-16 Thread Jienan Duan
app's jdbc connection and Tomcat's JNDI datasource are insusceptible. PS: I use Solr 3.5 Regards. 2012/8/17 Gora Mohanty > On 16 August 2012 14:07, Jienan Duan wrote: > > Hi all: > > I have resolved this problem by configuring a jndi datasource in tomcat. > > But

Re: How to implement Index time boost via DIH?

2012-08-16 Thread Jienan Duan
Hi Why don't you do this at the searching time?ex: q=fullName:foo+lastUpdatedBy:bar&qf=fullName^2+lastUpdatedBy^0.5 2012/8/17 bbarani > Hi, > > I am trying to implement index time boost via DIH. but I want to boost at > field level rather than document level. Ex: > > Consider there are 2 fields