Re: Wildcards at the Beginning of a Search.

2009-07-20 Thread Reza Safari
Add setAllowLeadingWildcard(true); to the constructor of org.apache.solr.search.SolrQueryParser.java Gr, Reza On Jul 20, 2009, at 4:00 PM, Jeff Newburn wrote: There is a hacky way to do it if you can pull it off. You can prepend some known prefix to the field then strip it off when you get

Re: How to filter old revisions

2009-07-15 Thread Reza Safari
1 has the same root_revision_id as document with id= 10 and the revision number of document with id= 11 is > revision number of document with id= 10) Gr, Reza On Jul 15, 2009, at 11:52 AM, Shalin Shekhar Mangar wrote: On Wed, Jul 15, 2009 at 3:19 PM, Reza Safari wrote: Hi

How to filter old revisions

2009-07-15 Thread Reza Safari
Hi, How is possible to search for max values e.g. doc1 has revision number 1 doc2 has revision number 2 doc3 has revision number 3 doc1, doc2 and doc3 have all same root revision id e.g. 1 I want search result with doc's with only highest revision number? Gr, Reza

Re: How to copyFeild to reverse string in another field

2009-06-11 Thread Reza Safari
Hmm, you want to do that because sorl doesn't allow* and ? as the first character? On Jun 11, 2009, at 9:02 AM, chem leakhina wrote: Hi How can I use copyField to copy field that contains normal text to another field and that field contains as reversed text? Best regards, Lee --

Re: Search on dynamic fields

2009-06-07 Thread Reza Safari
ontained values. I think you want to use this field differently. It would be to nice to hear from you, before I make too many assumptions to figure out your problem and suggest a solution. Cheers Avlesh On Fri, Jun 5, 2009 at 8:39 PM, Reza Safari wrote: When I search for exact match

Search on dynamic fields

2009-06-05 Thread Reza Safari
s? schema: stored="true" multiValued="true"/> Xml: 1003356 New New -- Reza Safari LUKKIEN Copernicuslaan 15 6716 BM Ede The Netherlands - http://www.lukkien.com t: +31 (0) 318 698000 This message is for

Re: Lucene Query to Solr query

2009-05-28 Thread Reza Safari
I found out that toString() works well as long as you use string values and do not use Lucene utility classes like NumberTools.longToString(someLongValue) Maybe nice future to have a Lucene query wrapper in solr package! Reza On May 26, 2009, at 2:18 PM, Reza Safari wrote: That is not what

Re: Lucene Query to Solr query

2009-05-26 Thread Reza Safari
76 stage: 09j1b7) -available_fields_field:*|DEACTIVATION_DATE|* + (content_authorization_group:0025t4) Gr, Reza On May 26, 2009, at 12:46 AM, Yonik Seeley wrote: On Mon, May 25, 2009 at 3:09 AM, Reza Safari wrote: One little question: is there any utility that can convert core Lucene query (an

Re: Lucene Query to Solr query

2009-05-25 Thread Reza Safari
(*myLuceneQuery.toString()*); QueryResponse response = mySolrServer.query(solrQuery); Cheers Avlesh On Mon, May 25, 2009 at 12:39 PM, Reza Safari wrote: Hello, One little question: is there any utility that can convert core Lucene query (any type e.q. TermQuery etc) to solr query? It'

Lucene Query to Solr query

2009-05-25 Thread Reza Safari
Hello, One little question: is there any utility that can convert core Lucene query (any type e.q. TermQuery etc) to solr query? It's is really a lot of work for me to rewrite existing code. Thanks, Reza -- Reza Safari LUKKIEN Copernicuslaan 15 6716 BM Ede The Nether

Re: Solr in cluster

2009-05-22 Thread Reza Safari
parallel (e.g. from multiple threads of one or more applications) and Solr will do the right thing without you having to put JMS or some other type of queue in front of Solr. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message ---- From: Reza Safari

Solr in cluster

2009-05-22 Thread Reza Safari
concurrency problem or do I have to use some JMS queue or something to update/commit? I can use synchronization technics to fix concurrency problems on one webserver but on more than one webserver, I think that you what I mean. Gr, Reza -- Reza Safari LUKKIEN Copernicuslaan 15 6716 BM Ede The