Re: how to change the segment file names

2008-05-10 Thread Otis Gospodnetic
Of course, you can make use of addIndexes and merge existing indices that way. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Chris Hostetter <[EMAIL PROTECTED]> > To: "java-user@lucene.apache.org" > Sent: Saturday, May 10, 2008 12:43:10 P

Re: confused about an entry in the FAQ

2008-05-10 Thread Patrick Turcotte
Did you try the IndexSearcher.doc(int i, FieldSelector fieldSelector) method? Could be faster because Lucene don't have do "prepare" the whole document. Patrick On Sat, May 10, 2008 at 9:35 AM, Stephane Nicoll <[EMAIL PROTECTED]> wrote: > From the FAQ: > > "Don't iterate over more hits than nee

RE: lucene farsi problem

2008-05-10 Thread esra
Hi Steve, i used the locale as "ar" and it works fine . again thanks a lot for your help. Esra Steven A Rowe wrote: > > Hi Esra, > > On 05/06/2008 at 7:38 AM, esra wrote: >> i tried the class and it works fine with the locale parameter "ar". > > Cool, I'm glad this addressed your problem!

Re: confused about an entry in the FAQ

2008-05-10 Thread Stéphane Nicoll
Sorry I don't get it. Do you have a sample code? Sent from my iPhone On 10 May 2008, at 17:43, "John Wang" <[EMAIL PROTECTED]> wrote: If your indexed field is not used to further filtering out the doc nor further scoring, you should use some sort of priority queueing mechanism to gather the

Re: how to change the segment file names

2008-05-10 Thread Chris Hostetter
: Currently, segment file names all start with _0, and increase with each new : segment created. But seems there is no easy way to change the segment file : names. : : This causes trouble when copying one index to another index's directory, if : the .cfs files have the same name. This isn't somet

Re: confused about an entry in the FAQ

2008-05-10 Thread John Wang
If your indexed field is not used to further filtering out the doc nor further scoring, you should use some sort of priority queueing mechanism to gather the top N documents. You can then call reader.document() on those docs if necc. -John On Sat, May 10, 2008 at 6:35 AM, Stephane Nicoll <[EMAIL

confused about an entry in the FAQ

2008-05-10 Thread Stephane Nicoll
>From the FAQ: "Don't iterate over more hits than needed. Iterating over all hits is slow for two reasons. Firstly, the search() method that returns a Hits object re-executes the search internally when you need more than 100 hits. Solution: use the search method that takes a HitCollector instead."

Search for long titles - wildcard queries

2008-05-10 Thread legrand thomas
Dear all, I'm a recent Lucene user and I'm looking for the best way to perform searches over long titles (ad titles on a website). For example, if the following documents exist: - TITLE, "Fender telecaster" - TITLE, "Land rover defender" - TITLE, "I sale a wonderful fender st

Re: Help to solve an issue when upgrading Lucene-Oracle integration to lucene 2.3.1

2008-05-10 Thread Michael McCandless
Just to bring closure on this issue... after numerous iterations with Marcelo, adding diagnostics to Lucene to isolate the cause of this exception, it turns out that it's a bug in Oracle 11g's JRE. Marcelo worked it down to a single document, which when added to a new index, would hit the except

Re: Fwd: Snowball not finding "purple"

2008-05-10 Thread Stephen Cresswell
Daniel, Think you've cracked it thanks. If I search for "purpl" I get the hits I expect. Suspect I'm doing something wrong with compass as I presume it should be converting "purple" to "purpl" before passing the query to lucene. I've tried explicitly telling it to use snowball at point of query,

Re: Fwd: Snowball not finding "purple"

2008-05-10 Thread Daniel Naber
On Samstag, 10. Mai 2008, Stephen Cresswell wrote: > If it was a difference between indexing / querying, why would lucene > find the word "ribbon" and not "purple" even though they appear in the > same document and are both exact matches? Using Snowball, "purple" becomes "purpl" but "ribbon" isn'

Re: Fwd: Snowball not finding "purple"

2008-05-10 Thread Stephen Cresswell
If it was a difference between indexing / querying, why would lucene find the word "ribbon" and not "purple" even though they appear in the same document and are both exact matches? AFAIK with grails searchable plugin all you have to do to the correct config file. Map compassSettings = ['compass.

Re: Fwd: Snowball not finding "purple"

2008-05-10 Thread Daniel Naber
On Samstag, 10. Mai 2008, Stephen Cresswell wrote: > For some reason it seems that either Lucene or Snowball has a problem > with the color purple. According the snowball experts the problem is > with lucene. Can anyone shed any light? Thanks, You are aware that you need to use the same analyzer