Doesn it make sense cache IndexReader?

2008-07-16 Thread Mohsen Saboorian
Hi, I have a set of indices in different languages (very smal indices: on average each index directory has 10,000 documents, which has an overall size of less than 2mb). I want to know if this is a good idea to cache IndexReader (once opened) somewhere and further reuse it? My application is singl

Re: Accent Insensitive Search

2008-07-16 Thread Petite Abeille
On Jul 16, 2008, at 10:58 AM, [EMAIL PROTECTED] wrote: Simple example is Kraków search should also bring Krakow also in search results. As pointed out previously, you need to transliterate your input using something like ISOLatinFilter or such. For example, searching for 'aaiun' should r

Re: Mixing non scored an scored queries

2008-07-16 Thread John Patterson
Karl Wettin wrote: > > > After sleeping on this it hit me that you might be able to save a bit > of CPU ticks by decorating queries and bypassing the scorer rather > than evaluating the score and then multiply it with 0. Probably not > too much though. Not much but might be worth mention

Re: Mixing non scored an scored queries

2008-07-16 Thread Karl Wettin
16 jul 2008 kl. 02.55 skrev John Patterson: Karl Wettin wrote: Or just set the boost to zero on the individual filter fields, or on the whole filter expression. +(my query) +(filter1 OR filter2 AND filter3)^0 That sounds perfect! I thought that boosts would be multiplied together to

Re: advanced WildcardQuery

2008-07-16 Thread Karl Wettin
16 jul 2008 kl. 18.09 skrev legrand thomas: I'd like to search on long titles (tokenized and stored) using the WildcardQuery. Considering the following example: title="pretty car for sale" If I search for "pretty*", I get the document having this title. But it's not the case if I build a

Re: advanced WildcardQuery

2008-07-16 Thread Erick Erickson
Check query.toString(), but I think the problem is that Lucene is looking for a single term (word?) that starts with "pretty" and ends with "car". So this should match "prettynicecar" but not "pretty nice car" since the latter is split into separate tokens. If you're concerned only with whole-word

advanced WildcardQuery

2008-07-16 Thread legrand thomas
Dear all, I'd like to search on long titles (tokenized and stored) using the WildcardQuery. Considering the following example: title="pretty car for sale" If I search for "pretty*", I get the document having this title. But it's not the case if I build a WilcardQuery with the term "pretty*ca

Re: Scaling

2008-07-16 Thread Glen Newton
A subset of your questions are answered (or at least examined) in my postings on multi-thread queries on a multiple-core single system: http://zzzoot.blogspot.com/2008/06/simultaneous-threaded-query-lucene.html http://zzzoot.blogspot.com/2008/06/lucene-concurrent-search-performance.html -Glen 200

Re: Interrupting a query

2008-07-16 Thread Paul J. Lucas
That has nothing to do with interrupting a query at some arbitrary time. - Paul On Jul 16, 2008, at 5:14 AM, Grant Ingersoll wrote: See https://issues.apache.org/jira/browse/LUCENE-997 -Grant On Jul 16, 2008, at 12:22 AM, Paul J. Lucas wrote: If a complicated query is running in a Thread,

Scaling

2008-07-16 Thread Karl Wettin
Is there some sort of a scaling strategies listing available? I think there is a Wiki page missing. What are the typical promblems I'll encounter when distributing the search over multiple machines? Do people split up their index per node or do they use the complete index and restrict wha

Re: Accent Insensitive Search

2008-07-16 Thread Erick Erickson
This topic has been discussed many times on this list, so you'll find far more information if you search the mail archive than I can remember . But no, you don't have to use SOLR. SOLR is built on Lucene, and as far as I know all the analyzers available to SOLR are available in Lucene. Basically,

Re: Interrupting a query

2008-07-16 Thread Grant Ingersoll
See https://issues.apache.org/jira/browse/LUCENE-997 -Grant On Jul 16, 2008, at 12:22 AM, Paul J. Lucas wrote: If a complicated query is running in a Thread, how does Lucene respond to Thread.interrupt()? I want to be able to interrupt an in- progress query. - Paul --

Re: Accent Insensitive Search

2008-07-16 Thread Anand Jain
Yes you'll need to do it both the times. --Original Message-- From: [EMAIL PROTECTED] To: java-user@lucene.apache.org To: [EMAIL PROTECTED] Sent: Jul 16, 2008 2:45 PM Subject: RE: Accent Insensitive Search I need to search reverse as well, so shall I apply filter while creating index and

RE: Accent Insensitive Search

2008-07-16 Thread Aamir.Yaseen
I need to search reverse as well, so shall I apply filter while creating index and then search using same ISOLatinFilter? Regards, Aamir Yaseen -Original Message- From: Anand Jain [mailto:[EMAIL PROTECTED] Sent: 16 July 2008 10:02 AM To: java-user@lucene.apache.org Subject: Re: Accent

Accent Insensitive Search

2008-07-16 Thread Aamir.Yaseen
Hi All, I need to implememnt Accent Insensitive Searchin my application. Simple example is Kraków search should also bring Krakow also in search results. I have seen many threads discussing sloution with SOLR, But I dont want to use SOLR in my application for only this feature. Any su

Re: Accent Insensitive Search

2008-07-16 Thread Anand Jain
You need to include ISOLatinFilter in your analyzer. That will convert all accented characters to their non-accented version. --Original Message-- From: [EMAIL PROTECTED] To: java-user@lucene.apache.org ReplyTo: java-user@lucene.apache.org Sent: Jul 16, 2008 2:28 PM Subject: Accent Insens

Accent Insensitive Search

2008-07-16 Thread Aamir.Yaseen
Hi All, I need to implememnt Accent Insensitive Searchin my application. Simple example is Kraków search should also bring Krakow also in search results. I have seen many threads discussing sloution with SOLR, But I dont want to use SOLR in my application for only this feature. Any su

Interrupting a query

2008-07-16 Thread Paul J. Lucas
If a complicated query is running in a Thread, how does Lucene respond to Thread.interrupt()? I want to be able to interrupt an in-progress query. - Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,