built index doesn't contain a segments file

2007-04-08 Thread lucene
Hi! I feel somewhat stupid for asking this but...I let two thread build an index and the merge it into one on disk via addIndexes(), optimize() and close(). This is what it looks like on disk: -rw-r--r-- 1 root root 25608841 Apr 8 18:37 _4.cfs -rw-r--r-- 1 root root 20 Apr 8 18:37 segme

Re: built index doesn't contain a segments file

2007-04-08 Thread Erick Erickson
Please explain a little more what "I let two threads build an index" means. If it means two threads operate on the *same* index, that's a problem (but you're probably not doing this or you'd be getting lock violations I expect). If it means they are two are completely separate operations working

Re[2]: Out of memory exception for big indexes

2007-04-08 Thread Artem
Hello Nilesh, Sunday, April 8, 2007, 9:03:06 AM, you wrote: NB> This seems like a very useful patch. Our application searches over 50 NB> million doc in a 40GB index. We only have simple conjunctive queries NB> on a single field. Currently, the command line search program that NB> prints top-10 r

Re: built index doesn't contain a segments file

2007-04-08 Thread lucene
On Sunday 08 April 2007 19:28, Erick Erickson wrote: > If it means they are two are completely separate > operations working with two different indexes in two separate > directories, that's a different situation. That's what I do. > But are you completely sure you're closing both indexwriter

Re: built index doesn't contain a segments file

2007-04-08 Thread Erick Erickson
Yep, you got it On 4/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: On Sunday 08 April 2007 19:28, Erick Erickson wrote: > If it means they are two are completely separate > operations working with two different indexes in two separate > directories, that's a different situation.

Re: Re[2]: Out of memory exception for big indexes

2007-04-08 Thread Nilesh Bansal
On 4/8/07, Artem <[EMAIL PROTECTED]> wrote: I must note that my patch only helps in lucene-OOM situations related to _sorted_ queries. If this is your case than I think yes it will help. Probably a newbie question, but can you please explain what sorted queries mean? Is simple keyword search a s

Re: Re[2]: Out of memory exception for big indexes

2007-04-08 Thread Erick Erickson
It *is* a bit confusing, since every search is sorted, kinda Practically, a sorted query is one where you call one of the search methods (on, say, Searcher) with a Sort object, which sorts on one or more of the fields in your index (which ones are used are specified in the (array of) Sort obj

Standard Parser Behavior

2007-04-08 Thread Walt Stoneburner
I'm trying to understand the specifics behind the notation +(...) and -(...) as it applies to the standard parser. I have three lists of words. I want documents that have at least one word from list A and also at least one word from list B (just one list isn't enough), and, finally, no documents

Re: Standard Parser Behavior

2007-04-08 Thread Otis Gospodnetic
Purely negative queries don't work. Example: -A will not find all documents that do not have "A". + means a term or phrase is required - means a term or phrase is prohibited Otis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simpy -- http://www.simpy.com/ - Tag - Search - Sh