(How) can I use SolrTestCaseJ4.assertQ(..) to test an existing index?

2011-05-21 Thread Gabriele Kahlout
Hello, Examining Solr Core example it seems that a new index is created in a temp dataDir deleted after each test (Good practice - agreed). But before I start debugging adoc(..) I'm wondering if I can query the same index which I see to work through Solr Web Server interface. Also for large indece

Re: (How) can I use SolrTestCaseJ4.assertQ(..) to test an existing index?

2011-05-21 Thread Gabriele Kahlout
On Sat, May 21, 2011 at 3:29 PM, Gabriele Kahlout wrote: > Hello, > > Examining Solr Core example it seems that a new index is created in a temp > dataDir deleted after each test (Good practice - agreed). > errr..from a test to the other only dataDir is rm but not the in-memory index. That's blow

chinese SOLR query parser

2011-05-21 Thread Pradeep Pujari
Hi, I made changes to schema.xml with CJKAnalyzer. Does naything else required to change in solrconfig.xml for query parser component. Because, I do not get any result back while searching? Looks like the chinese characters are being encoded unable to match in the index. Any help is highly appr

Sorting function with condition

2011-05-21 Thread ngaurav2005
Hi all, I had to do sorting on search results based on some condition inside sort function. Let me put forward with example: Query: q=timestamp:123454321&sort=somefunction asc But this "Somefunction" has to have if condition inside it, like If age =10, sum(value,x) Else sum(value,y) Actually s

Re: chinese SOLR query parser

2011-05-21 Thread Michael McCandless
Unfortunately, Solr's defaults (example schema) are unusable for non-whitespace languages... see: http://markmail.org/thread/ww6mhfi3rfpngmc5 So it could be you need to turn off autoGeneratePhraseQueries in your fieldType? We are working towards fixing the example schema (for 3.2/4.0) in htt

Re: chinese SOLR query parser

2011-05-21 Thread Andy
Is there any example schema for Chinese that I could use as a guide right now? Thanks --- On Sat, 5/21/11, Michael McCandless wrote: > From: Michael McCandless > Subject: Re: chinese SOLR query parser > To: solr-user@lucene.apache.org > Date: Saturday, May 21, 2011, 6:14 PM > Unfortunately, S

Re: Results with and without whitspace(soccer club and soccerclub)

2011-05-21 Thread Erick Erickson
Have you looked at and/or shingles? Another possibility is synonyms if you know all the terms you want to pair up. Best Erick On May 20, 2011 3:03 PM, "Sujit Pal" wrote: > This may or may not help you, we solved something similar based on > hyphenated words - essentially when we encountered a hy

Re: return unaltered complete multivalued fields with Highlighted results

2011-05-21 Thread Erick Erickson
Not quite sure I understand, but would just returning the stored field in the work? Best Erick On May 20, 2011 4:55 PM, "alexei" wrote: > Hello, > > I have been trying to return highlighted text in original order and without > removing anything from it. > Seems that highlighter sorts my text by

Re: very slow commits and overlapping commits

2011-05-21 Thread Erick Erickson
Well, committing less offside a possibilty . Here's what's probably happening. When you pass certain thresholds, segments are merged which can take quite some time. His are you triggering commits? If it's external, think about using auto commit instead. Best Erick On May 20, 2011 6:04 PM, "Bill