problem with the label

2007-05-26 Thread STEFANOS STEFANOS
Hello, When i tried to index a sense with name Sense:(the sense) with label contents: (contents:Sense:sense) i had a problem in the searching.For example when i had as a query the Sense:sense lucene didn't return anything and when contents:Sense:sense returned many documents that they

RE: Setting the maximum number of documents in a lucene segment

2007-05-26 Thread Ard Schrijvers
Hello Otis, > > Hello Ard, > > What you are after is a higher mergeFactor and probably also > a higher maxBufferedDocs. Is indexing performance the concern? No, this is not what I am after, and the mergeFactor isn't really solving my issue. My issue is very similar to (I read this thread late

Re: How to filter fields with hits from result set

2007-05-26 Thread Andreas Guther
Erick, I think I found an inexpensive solution for the problem (I still need to make performance tests against our production copy but so far so good): I am using the rewritten Query, extract all terms, collect the search words and then search in the field for a match against the extracted words

Res: exception while indexing

2007-05-26 Thread Rodrigo F Valverde
Hey guy...I use the 2.1 version and I get the same problem...but if the "Luke" (http://www.getopt.org/luke/) is open!!! If you were using luke or any other at the opening index moment, close that and try again! - Mensagem original De: Michael McCandless <[EMAIL PROTECTED]> Para: ja

Re: Searching on a Rapidly changing Index

2007-05-26 Thread Yonik Seeley
On 5/24/07, Joe Shaw <[EMAIL PROTECTED]> wrote: On 5/24/07, Erick Erickson <[EMAIL PROTECTED]> wrote: > If that's unacceptable, you can *still* open up a new reader in the > background and warm it up before using it. "immediately" then > becomes 5-10 seconds or so. I've seen the term "warming" u

Re: how to exact search?

2007-05-26 Thread Erick Erickson
Because "Test" is a phrase of exactly one word, so it matches both. Assuming you indexed it with StandardAnalyzer, you indexed tokens test, one, two. test got indexed for both docs. To the phrase "test" matches both documents. Your question is ambiguous. If you're asking how to return only exact

Re: how to exact search?

2007-05-26 Thread Mohammad Norouzi
So why the field1:"Test" returns results with "Test one" "Test two" how can I tell lucene to return only "Test" On 5/26/07, Erick Erickson <[EMAIL PROTECTED]> wrote: It becomes a phrase query. Erick On 5/26/07, Mohammad Norouzi <[EMAIL PROTECTED]> wrote: > > Hi All > I want to search an exac

Re: how to exact search?

2007-05-26 Thread Erick Erickson
It becomes a phrase query. Erick On 5/26/07, Mohammad Norouzi <[EMAIL PROTECTED]> wrote: Hi All I want to search an exact phrase, for example field1:"This is a Text" or by this query: field1:"Test" returns the result that only contain the word "Test" and not "Test one" or "Test two" I have a

how to exact search?

2007-05-26 Thread Mohammad Norouzi
Hi All I want to search an exact phrase, for example field1:"This is a Text" or by this query: field1:"Test" returns the result that only contain the word "Test" and not "Test one" or "Test two" I have a page that build a query and finally send that query to a MultiFieldQueryParser I have a clas

Re: Sorting direction

2007-05-26 Thread Erick Erickson
Would specifying "reverse" work, like *Sort *(String field, boolean reverse) where the field is your timeOfIndexing field? You are guaranteed that document ID order is invariant, even though the IDs may change. That is, for any two

Re: exception while indexing

2007-05-26 Thread Michael McCandless
This looks like one of the issues that was fixed in 2.1. Is it possible to test 2.1 to see if it still happens? Mike "Mohammad Norouzi" <[EMAIL PROTECTED]> wrote: > Hi > I am using Lucene 2.0.0 > I get following exception while indexing... > is there anyone has faced this exception? > thanks >

Re: RAMDirectory issue

2007-05-26 Thread Erick Erickson
Unless you have hard evidence that FSDirectories are too slow, you shouldn't IMO. The only place I've found RAMDirectories useful (so far) is in unit tests where I'm creating a very small in-memory index, running a few tests, and throwing it away. My first question for this is "why are you using

Re: Search Query AND OR for Title and Description Fields

2007-05-26 Thread Erick Erickson
This makes little sense. Could you give an example of how you'd like to see things operate? And have you looked at the FAQ for Lucene query syntax? Erick On 5/25/07, Ram Peters <[EMAIL PROTECTED]> wrote: I have title field and description field indexed. Now I want to search for "object orien

exception while indexing

2007-05-26 Thread Mohammad Norouzi
Hi I am using Lucene 2.0.0 I get following exception while indexing... is there anyone has faced this exception? thanks java.io.IOException: Cannot rename E:\index-lab\segments.new to E:\index-lab\segments at org.apache.lucene.store.FSDirectory.renameFile(FSDirectory.java :294) a

Sorting direction

2007-05-26 Thread jafarim
Hi folks, - I am wondering whether there is any mechanism to specify the sorting direction (i.e. ascending/descending) without being obliged to make a custom Sorter. I add a "timeOfIndexing" field in order that I can retrive results based ob recentness later. But the sorter sorts in an ascending

RAMDirectory issue

2007-05-26 Thread Walter Ferrara
I have an index on the disk. I'm using RAMDirectory( String ) to load index in RAM. I need from time to time to reload the index (when it is not current anymore), but I keep getting Out Of memory exception. Making the jvm heap bigger helps, but only allow more reloading, eventually it will throw t