Re: Chinese chars are not indexed ?

2010-06-27 Thread Ahmet Arslan
> I enter Chinese chars in the admin console for searching > matched documents, it does not return any though I have > uploaded some documents that has Chinese chars. Could it be URI Charset Config? http://wiki.apache.org/solr/SolrTomcat#URI_Charset_Config

Use of EmbeddedSolrServer

2010-06-27 Thread Robert Naczinski
Hello, there is a recommendation (best practice) for the use of EmbeddedSolrServer? We use it, because we have in our application an EJB module with Message Drive Bean. Now, we create the EmbeddedSolrServer (http://wiki.apache.org/solr/Solrj # EmbeddedSolrServer) in a javax.servlet.ServletContextL

Re: NGramFilterFactory usage

2010-06-27 Thread Indika Tantrigoda
Hello, I got the problem solved. The issue was I was setting the wrong field name in the qf parameter of my request handler. Thanks. Regards, Indika On 27 June 2010 08:52, Indika Tantrigoda wrote: > Hello, > > > Applying the NGramFilterFactory for analyzer type="query" didnt solve the > issue

Re: example solr xml working fine but my own xml files not working

2010-06-27 Thread Erick Erickson
Most likely explanation: the Analyzer you're using at query time isn't matching what the Analyzer does at index time. For instance, the casing is different (or a myriad of other things). Or you're not actually querying on the field you think you are. Please post the definitions for the field from

Re: example solr xml working fine but my own xml files not working

2010-06-27 Thread codar
Thanks for the link to "how to post" - not sure how to interpret that. I already posted the fields definition from the schema, the query I'm trying to submit, and the results. I'm not sure what more I can post. I get 0 results, and when I turn debug on it doesn't provide anything meaningful. P

Re: example solr xml working fine but my own xml files not working

2010-06-27 Thread Binesh Gummadi
What is the default search field? Is it "ALL" or did you change it? If it is "ALL" are you copying your data to ALL? Instead of searching for "*:*" does it show results if you search for "id:ZS1"? Binesh Gummadi On Sun, Jun 27, 2010 at 2:12 PM, codar wrote: > > Thanks for the link to "how t

Wither field compresed="true" ?

2010-06-27 Thread David Smiley (@MITRE.org)
I just noticed that field compression (e.g. compressed="true") is no longer in Solr, nor can I find why this was done. Can a committer offer an explanation? If the reason is that it eats up CPU, then I'd rather accept this tradeoff for a big-data yet small query volume use case. ~ David Smiley

Re: example solr xml working fine but my own xml files not working

2010-06-27 Thread codar
Binesh, Great advice. Yes, it does show results when I search for id:ZS1, COL:RW, and TI:MAC, but strangely it does not show results when I try AD:ZS1 or AN:ZS1. Also, I'm not sure where to find the default field, so I'm fairly certain I didn't change it. I'm entering the querytex

Re: example solr xml working fine but my own xml files not working

2010-06-27 Thread Ahmet Arslan
> Yes, it does show results when I search for id:ZS1, > COL:RW, and TI:MAC, > but strangely it does not show results when I try > AD:ZS1 or AN:ZS1. What is the output of q=AD:ZS1&debugQuery=on > Also, I'm not sure where to find the default field, so I'm > fairly certain I didn't

Re: example solr xml working fine but my own xml files not working

2010-06-27 Thread Erick Erickson
Well, all I can say is that a fresh download of 1.4.1 and cutting and pasting your exact fields and putting them into my schema.xml, copying and pasting your exact document into a new document and indexing it (./post.jar eoe.xml) and then running any of the 4 queries you indicated works fine for me

Re: Chinese chars are not indexed ?

2010-06-27 Thread go canal
Hi, I am using the sample, not deploying Solr in Tomcat. Is there a place I can modify this setting ? thanks, canal From: Ahmet Arslan To: solr-user@lucene.apache.org Sent: Sun, June 27, 2010 4:47:15 PM Subject: Re: Chinese chars are not indexed ? > I enter

Re: example solr xml working fine but my own xml files not working

2010-06-27 Thread Binesh Gummadi
Jeff, It should be in schema.xml at the end of the file. Look for the following. all To copy your fields to the default search field you should have something like this. Once you do that you should be able to search for ZS1. As others suggested you should look at your index using Lu

Re: questions about Solr shards

2010-06-27 Thread Babak Farhang
Otis, Belated thanks for your reply. >> 2. "The index could change between stages, e.g. a >> document that matched a >> query and was subsequently changed may no >> longer match but will still be >> retrieved." > 2. This describes the situation where, for instance, a > document with ID=10 is upd

Re: SolrJ/EmbeddedSolrServer

2010-06-27 Thread Ken Krugler
On May 22, 2010, at 11:25am, Ryan McKinley wrote: accidentally hit send... Eache core can have the dataDir set explicitly. If you want to do this with solrj, you would need to manipulate the CoreDescriptor objects. I'm hoping somebody can clarify what's up with the CoreDesc

is there a "delete all" command in updateHandler?

2010-06-27 Thread Li Li
I want to delete all index and rebuild index frequently. I can't delete the index files directly because I want to use replication

Re: SolrJ/EmbeddedSolrServer

2010-06-27 Thread Ken Krugler
On May 22, 2010, at 11:24am, Ryan McKinley wrote: Check: http://wiki.apache.org/solr/CoreAdmin Unless I'm missing something, I think you should be able to sort what you need If I'm using SolrJ, is there a programmatic way to force a reload of a core? This, of course, assumes that I'm a

Re: SolrJ/EmbeddedSolrServer

2010-06-27 Thread Ken Krugler
Answering my own question... I can use CoreContainer.reload("core name") to force a reload. I assume that if I've got an EmbeddedSolrServer running at the time I do this reload, everything will happen correctly under the covers. So now I just need to find out how to programmatically change s

Re: SolrJ/EmbeddedSolrServer

2010-06-27 Thread Ken Krugler
Sort of answering my own question here too... It seems like I need to get the current core, and use that to instantiate a new SolrCore with the same exact config, other than the dataDir. The documentation for SolrCore()'s constructor says: "If a core with the same name already exists, it w

Re: Chinese chars are not indexed ?

2010-06-27 Thread Ahmet Arslan
> I am using the sample, not deploying Solr in Tomcat. Is > there a place I can modify this setting ? Ha, okey if you are using jetty with java -jar start.jar then it is okey. But for Chinese you need special tokenizer since Chinese is written without spaces between words. Or you can search