Re: custom handler results don't seem to match manually entered query string

2008-02-25 Thread Chris Hostetter
: But I always thought such code: : : Term term = new Term(text, str); : TermQuery tq = new TermQuery(term); : query.add(tq, Occur.SHOULD); : : would get query terms through analyzers - since they are specified under the underlying lucene query classes (like TermQuery) don't know anything

Re: Newbie question about search

2008-02-25 Thread Chris Hostetter
: Once I post it I see following entry in my catalina.out. However when I go : to solr search page and try to search any token in content sectionI do not : get any thing returned. basically : : result name=response numFound=0 start=0/ the logs you posted don't inlcude anything about the query

CorruptIndexException: unknown format version: -3

2008-02-25 Thread Paul Danese
2Hi all, Is there any way to recover from such an error as listed in the subject heading? Luke can view the index just fine (at least at a cursory level Luke is able to open the index, give me back the # of docs, etc.), but solr throws this exception whenever I try and start it up. any ideas

Field specific synonyms

2008-02-25 Thread Nikhil Chhaochharia
Hi, I am using the 'text' fieldType from the sample schema.xml of Solr. I have multiple fields which are of 'text' type but I want to use separate synonym files for each of the fields. For example, SynonymFilter should use synonym_abcd.txt for the field named 'abcd' and synonym_xyz.txt for

Re: CorruptIndexException: unknown format version: -3

2008-02-25 Thread Walter Ferrara
did you create/modify the index with a newer version of lucene than the one you use in solr? In this case I doubt you can downgrade your index, but maybe you can upgrade lucene in your solr (search in this forum, there should be a thread about this), (or try with the latest nightly builds)

Re: CorruptIndexException: unknown format version: -3

2008-02-25 Thread Paul Danese
2Unfortunately, the answer is no. I didn't use an upgraded version of lucene or solr. this is the bizzarre issue. I'm actually using solr via the acts_as_solr plugin used in ruby. At the time, I was adding a few 100-thousand docs to the index...there appears to have been a memory leak as

Re: Field specific synonyms

2008-02-25 Thread Yonik Seeley
On Mon, Feb 25, 2008 at 6:22 AM, Nikhil Chhaochharia [EMAIL PROTECTED] wrote: I am using the 'text' fieldType from the sample schema.xml of Solr. I have multiple fields which are of 'text' type but I want to use separate synonym files for each of the fields. For example, SynonymFilter

Re: Threads in Solr

2008-02-25 Thread Evgeniy Strokin
Yes I do computing the same DocSet. Should it be the problem? Is any way to solve it? In general in each thread I ran the same query and add different Filter Query. - Original Message From: Chris Hostetter [EMAIL PROTECTED] To: Solr User solr-user@lucene.apache.org Sent: Monday,

Re: Search terms in the result

2008-02-25 Thread Antonello Provenzano
Chris, Thank you for answering my question, but maybe I wasn't clear in explaining it. In fact, what I meant was that using the Query compilation in Lucene you can obtain an array of strings containing the terms used from the system to search the indices. The reason I'm asking this because,

protwords | synonyms | elevator conf files

2008-02-25 Thread Matthew Runo
Hello! All these configuration files seem like they could be stored in a database just as well as they are stored in the file structure. Specifically the new elevator handler (which looks to be exactly what I needed, thanks!!) would be more useful if it could get its configuration from a

can I form a SolrQuery and query a SolrServer in a request handler?

2008-02-25 Thread Brian Whitman
I'm in a request handler: public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) { And in here i want to form a SolrQuery based on the req, query the searcher and return results. But how do I get a SolrServer out of the req? I can get a SolrIndexSearcher but that

Re: can I form a SolrQuery and query a SolrServer in a request handler?

2008-02-25 Thread Yonik Seeley
On Mon, Feb 25, 2008 at 2:07 PM, Brian Whitman [EMAIL PROTECTED] wrote: I'm in a request handler: public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) { And in here i want to form a SolrQuery based on the req, query the searcher and return results. But how do I

Re: can I form a SolrQuery and query a SolrServer in a request handler?

2008-02-25 Thread Brian Whitman
Perhaps back up and see if we can do this a simpler way than a request handler... What is the query structure you are trying to generate? I have two dismax queries defined in a solrconfig. Something like requestHandler name=q1 class=solr.DisMaxRequestHandler ... str name=qf

Re: can I form a SolrQuery and query a SolrServer in a request handler?

2008-02-25 Thread Brian Whitman
Would query ?qt=q1q=kittensbf=2fl=id, then ? qt=q2q=kittensbf=2fl=id. Sorry, I meant: ?qt=q1q=kittensbf=sortable^2fl=id, then ? qt=q2q=kittensbf=sortable^2fl=id

Re: can I form a SolrQuery and query a SolrServer in a request handler?

2008-02-25 Thread Yonik Seeley
One method to generate any arbitrary query is to create your own QParser. In this case, because it's just two dismax queries, there is an easier way that I snuck in during QParser work: embedded queries. The standard solr query syntax (which is a slightly modified lucene query syntax) supports

Why does highlight use the index analyzer (instead of query)?

2008-02-25 Thread Christian Vogler
Hi, I am using Solr 1.2.0 with a custom compound word analyzer, which inserts the decompositions into the token stream. Because I assume that when the user queries for a compound word, he is interested only in whole-word matches, I have it enabled only in my index analyzer chain. However, due

range query failed if highlight is used

2008-02-25 Thread Xuesong Luo
Hi, I'm using solr1.3 nightly build. I defined a sint field bookCount. When I query on this field, it works fine without highlight. However if I turn on highlight(hl=truehl.fl=bookCount), it failed due to the error below. Does anyone know if this is a bug? If I change the type to integer, the

Re: Threads in Solr

2008-02-25 Thread Chris Hostetter
: Yes I do computing the same DocSet. Should it be the problem? Is any way to solve it? : In general in each thread I ran the same query and add different Filter Query. it's not neccessarily a problem, it's just that you may not get much benefit from prallelization if all of the worker