Re: How could I monitor solr cache

2011-07-19 Thread kun xiong
I working on dev performance turning. I am looking for a method that could record cache status into log files. On Tue, Jul 19, 2011 at 2:24 PM, Ahmet Arslan wrote: > > > I am wondering how could I get solr cache running status. I > > know there is a > > JMX containing those information. > > >

How could I monitor solr cache

2011-07-18 Thread kun xiong
Hi, I am wondering how could I get solr cache running status. I know there is a JMX containing those information. Just want to know what tool or method do you make use of to monitor cache, in order to enhance performance or detect issue. Thanks a lot Kun

How to involve JMX by configuration

2011-06-14 Thread kun xiong
Hi, I am wondering how to start JMX monitor without code change. Currently, I have to insert code "LocateRegistry.createRegistry();" into SolrCore.java. And I specify at solrconfig.xml. Can I make it by only configuration change? Thanks Kun

Re: [POLL] How do you (like to) do logging with Solr

2011-05-18 Thread kun xiong
[ ] I always use the JDK logging as bundled in solr.war, that's perfect [X ] I sometimes use log4j or another framework and am happy with re-packaging solr.war [ ] Give me solr.war WITHOUT an slf4j logger binding, so I can choose at deploy time [x ] Let me choose whether to bundle a binding

solr/home property seting

2011-05-17 Thread kun xiong
Hi all, I am wondering how could I set a path for solr/home property. Our solr home is inside the solr.war, so I don't want a absolute path(will deploy to different boxes). Currently I hard code a relative path as solr/home property in web.xml. solr/home *../webapps/solr/ho

How could each core share configuration files

2011-04-19 Thread kun xiong
Hi all, Currently in my project , most of the core configurations are same(solrconfig.xml, dataimport.properties...), which are putted in their own folder as reduplicative. I am wondering how could I put common ones in one folder, which each core could share, and keep the different ones in their

Re: How could I set multi-value for a field in DataImporter

2011-03-31 Thread kun xiong
I found the answer from source code. Using a Collection as value. Thanks any way 2011/4/1 kun xiong > Stefan, > > Thanks very much for your quick reply. > > Actually I have to write a CustomDataImporter class to full-import data and > index them all. > > So it should

Re: How could I set multi-value for a field in DataImporter

2011-03-31 Thread kun xiong
theis > Kun, > > it should be enough to use the same field second time, like this: > > value2 > > Regards > Stefan > > On Thu, Mar 31, 2011 at 11:39 AM, kun xiong wrote: > > Since the interface of DataImporter return a Map, I can't put multi value > >

How could I set multi-value for a field in DataImporter

2011-03-31 Thread kun xiong
Since the interface of DataImporter return a Map, I can't put multi value for a same field, right? Example: I write a class extending DataImporter, and want to index {"value1", "value2"} for field "name". How should I do? Many thanks. Kun

How call I make one request for all cores and get response classified by cores

2011-01-23 Thread kun xiong
I have a group of subindex, each of which is a core in my solr now. I want to make one query for some of them, how can I do that? And classify response doc by index, using facet search? Thanks Kun

Re: Which QueryParser to use

2011-01-20 Thread kun xiong
Okey, thanks very much. 2011/1/21 Ahmet Arslan > > We construct our lucene query after certain analysis(ex : > > words > > segmentation, category identification). > > By analysis, I referring charfilter(s)+tokenizer+tokenfilter(s) > combination. > > > Do you mean we > > plugin those analysis > >

Re: Which QueryParser to use

2011-01-20 Thread kun xiong
Thanks a lot for your reply.That was very helpful. We construct our lucene query after certain analysis(ex : words segmentation, category identification). Do you mean we plugin those analysis logic and query construction part onto solr, and solr takes the very beginning input. Kun 2011/1/20 Ahme

Re: Which QueryParser to use

2011-01-19 Thread kun xiong
Thar example string means our query is BooleanQuery containing BooleanQuerys. I am wondering how to write a complicated BooleanQuery for dismax, like (A or B or C) and (D or E) Or I have to use Lucene query parser. 2011/1/20 Lalit Kumar 4 > > Sent on my BlackBerry® from Vodafone > > -Origi

Re: Which QueryParser to use

2011-01-19 Thread kun xiong
We construct our query by Lucene API before, as BooleanQuery, TermQuery those kind of things. The string I provided is value from Query.toString() methord. Type are all String. 2011/1/20 Ahmet Arslan > > Hi all > > We are planning to move our search core from > > Lucene library to Solr, and

Which QueryParser to use

2011-01-19 Thread kun xiong
Hi all We are planning to move our search core from Lucene library to Solr, and we are new here. We have a question :which parser we should choose? Our original query for Lucene is kinda of complicated Ex: *+((name1:A name2:B)^1000 (category1:C ^100 category:D ^10) ^100) +(location1:E locat

Re: HTTP Status 400 - org.apache.lucene.queryParser.ParseException

2011-01-18 Thread kun xiong
Hi Erick, Thanks for the fast reply. I kind of figured it was not supposed to be that way. But it would have some benefits when we need migrate from Lucene to Solr. We don't have to rewrite the build query part, right. Is there any parser can do that? 2011/1/18 Ahmet Arslan > > what's the alte

HTTP Status 400 - org.apache.lucene.queryParser.ParseException

2011-01-18 Thread kun xiong
Hi all, I got a ParseException when I query solr with Lucene BooleanQuery expression (toString()). I use the default parser : LuceneQParserPlugin,which should support whole lucene syntax,right? Java Code: BooleanQuery bq = new BooleanQuery(); Query q1 = new TermQuery(new Term("I_NAME_ENUM", "K

Fwd: HTTP Status 400 - org.apache.lucene.queryParser.ParseException

2011-01-18 Thread kun xiong
-- Forwarded message -- From: kun xiong Date: 2011/1/18 Subject: HTTP Status 400 - org.apache.lucene.queryParser.ParseException To: solr-user@lucene.apache.org Hi all, I got a ParseException when I query solr with Lucene BooleanQuery expression (toString()). I use the default