Low hits

2007-01-23 Thread DECAFFMEYER MATHIEU
Hi, I'm pretty new to Lucene and I try to find some help here. I added the title of the document : doc.add(Field.Text("title", title)); e.g. the title is "Constructions" When I do a search on this title I have as result 2% Can someone help me udnerstanding what I am doing wrong ? Thank u. ___

RE: Low hits

2007-01-23 Thread DECAFFMEYER MATHIEU
at, since one line of code and "it doesn't work" don't give us much to go on . Best Erick On 1/23/07, DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm pretty new to Lucene and I try to find some help here. > I added the title of the do

RE: Low hits

2007-01-25 Thread DECAFFMEYER MATHIEU
Thank u for your reply, There is not much help in Regain community, But I can see that when I type e.g. title:logistics I have like 0.70 also headlines:logistics 0.70 But when I type logistics I have 0.02 I do not udnerstand since I added this word as title and headlines and I need a higher sc

Score

2007-01-29 Thread DECAFFMEYER MATHIEU
Hi, I have one index with one document with title "Logistics" I have a second index with the same document with title "Logistics" and other documents (some contains the word "Logistics" as well) If I execute a search title:Logistics in the first index, I have 0.31 for the document with title "Lo

Merge Hits

2007-01-29 Thread DECAFFMEYER MATHIEU
Hi, I have a table of objects Hit, I want to merge the different Hits objects of the table to have one Hits object. Is this possible ? Thank u for any help ! __ Internet communications are not secure and therefore

RE: Merge Hits

2007-01-29 Thread DECAFFMEYER MATHIEU
. -Original Message- From: Nicolas Lalevée [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 12:15 PM To: java-user@lucene.apache.org Subject: Re: Merge Hits * This message comes from the Internet Network * Le Lundi 29 Janvier 2007 12:08, DECAFFMEYER MATHIEU a écrit : > Hi, I h

RE: Merge Hits

2007-01-29 Thread DECAFFMEYER MATHIEU
Network * Le Lundi 29 Janvier 2007 13:33, DECAFFMEYER MATHIEU a écrit : > Thank u for your response, > Actually I want to merge the Hits to get a better score, > For example when user enter Hello > I want to merge : > title:Hello > headlines:Hello > summary:Hello > content:H

RE: Score

2007-01-29 Thread DECAFFMEYER MATHIEU
IndexSearcher.explain(). That'll tell you why. Erik On Jan 29, 2007, at 4:43 AM, DECAFFMEYER MATHIEU wrote: > Hi, > > I have one index with one document with title "Logistics" > > I have a second index with the same document with title "Logistics" >

RE: Score

2007-01-30 Thread DECAFFMEYER MATHIEU
Mon, 29 Jan 2007 21:52:58 +0100 : From: Soeren Pekrul <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: Re: Score : : DECAFFMEYER MATHIEU wrote: : > : > Both are the same document but in different indexes, : > the only difference i

RE: Score

2007-01-31 Thread DECAFFMEYER MATHIEU
>>Have you looked at the constructor for BooleanQuery and >>tried passing "true" to disable the Coord factor? Thanks Chris, this is exactly what I want, but I am working with lucene 1.4.3 because I have to for some reasons, Is there any equivalent ?! Thank u.

Boost

2007-01-31 Thread DECAFFMEYER MATHIEU
Just as a test I tried this : Field contentField = new Field( "content", cleanedContent, Field.Store.NO, Field.Index.TOKENIZED); contentField.setBoost(100); doc.add(contentField); In my document I have the word "experience", when I do a search on this word I

RE: Boost

2007-01-31 Thread DECAFFMEYER MATHIEU
Sorry I have it working ... __ Mathieu Decaffmeyer From: DECAFFMEYER MATHIEU [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 11:04 AM To: java-user@lucene.apache.org Subject: Boost * This message

RE: Recreating an index

2007-01-31 Thread DECAFFMEYER MATHIEU
Hi, I have exactly the same question. Correct me if I'm wrong : it seems that I can do any I/O operations on the index while querying because of the open IndexReader. So if I had the same situation as gui (the poster of the thread), I can just delete the old index while people query on it ? Then b

RE: Score

2007-02-01 Thread DECAFFMEYER MATHIEU
Thank u Chris for your support. __ Matt -Original Message- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 12:54 AM To: java-user@lucene.apache.org Subject: RE: Score * This message comes from the Internet Net

Deleting document by file name

2007-02-01 Thread DECAFFMEYER MATHIEU
Hi, I have a list of filenames like Corporate.htm Logistics.htm Merchant.htm that need to be deleted. For now on I give this list to my Search application that reads the idnex and give the results, and if the path contains one of the filenames, I don't display this hit ... Not really proper

RE: Deleting document by file name

2007-02-01 Thread DECAFFMEYER MATHIEU
closed and reopened. Erick On 2/1/07, DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a list of filenames like > Corporate.htm > Logistics.htm > Merchant.htm > > that need to be deleted. > > For now on I give this list to my Search

RE: Deleting document by file name

2007-02-01 Thread DECAFFMEYER MATHIEU
: index.deleteDocuments(filed name, field value); _ From: DECAFFMEYER MATHIEU [mailto:[EMAIL PROTECTED] Sent: 01 February 2007 09:53 To: java-user@lucene.apache.org Subject: Deleting document by file name Hi, I have a list of filenames

Adding headlines, path

2007-02-02 Thread DECAFFMEYER MATHIEU
Hi all, I have simple questions for which I can't find an answer by googling : 1) I want to add headlines for a document : Field headlinesField = new Field("headlines", headlines, Field.Store.YES, Field.Index.TOKENIZED); But how do I separate the headlines between them ? Let's say I want to ad

RE: Adding headlines, path

2007-02-02 Thread DECAFFMEYER MATHIEU
ose are just the fields that demo uses, your application can use any field it needs, like "headlines" above. Otis - Original Message From: DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Friday, February 2, 2007 9:03:50 AM Subject: Adding head

IDFrequency

2007-02-02 Thread DECAFFMEYER MATHIEU
Hi, The score depends of 1. the query 2. the matched document 3. the index. I don't really understand why the index must influence the score (why it ahs been implemented that way). Let's say I have this page Logistics.htm I have just one time the word "experience" in it. It will get a high sc

Open & Close Reader

2007-02-22 Thread DECAFFMEYER MATHIEU
Hi, I need to merge indexes, if I want the user to see the changes (the merged indexes), I heard I need to close the index reader and re-open it again. But I will need to do this avery x minutes for some reasons, So I wondered what could happen if user does a query just when a re-open of the read

RE: Open & Close Reader

2007-02-22 Thread DECAFFMEYER MATHIEU
My question is what happen when a re-opening of the reader occurs and in the same time a user does a query on the index ? And are there solutions for this. __ Matt -Original Message- From: Michael McCandless [mailto:[EMAIL PROTECTED] Sent: Thursda

RE: Open & Close Reader

2007-02-22 Thread DECAFFMEYER MATHIEU
the user is executing a query"... Erick On 2/22/07, DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> wrote: > > My question is what happen when a re-opening of the reader occurs and in > the same time a user does a query on the index ? And are there solutions > for this. > >

Merge Indexes - addIndexes

2007-02-28 Thread DECAFFMEYER MATHIEU
Hi, I store the Lucene Index of my web applications in a file system. Oftenly, I need to add to this index another index also stored as file system. I have three questions : * What is the best way to do this ? Open an IndexReader on this newcoming index-file system and use addIndexes(IndexR

Update - IOException

2007-03-01 Thread DECAFFMEYER MATHIEU
Hi, While updating my index I have the following error : [3/1/07 9:44:19:214 CET] 76414c82 SystemErr R java.io.IOException: Lock obtain timed out: [EMAIL PROTECTED]:\TEMP\lucene-b56f455aea0a705baecaa4411d590aa2-write.lock [3/1/07 9:44:19:214 CET] 76414c82 SystemErr R at org.apache.l

RE: Update - IOException

2007-03-01 Thread DECAFFMEYER MATHIEU
I deleted the lock file, now it seems to work ... When can such an error happen ? __ Matt From: DECAFFMEYER MATHIEU [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 9:56 AM To: java-user@lucene.apache.org

Using Stemmers

2007-03-05 Thread DECAFFMEYER MATHIEU
Hi, This is a very simple question, but I just can't find the ressources I need ... I am using the StandardAnalyzer : StandardAnalyzer stdAnalyzer; if ((stopWordList != null) && (stopWordList.length != 0)) { stdAnalyzer = new StandardAnalyzer(stopWordList); } else { stdAnalyzer = new Standa

RE: Plural word search

2007-03-09 Thread DECAFFMEYER MATHIEU
I needed this myself not long time ago.. Here is a piece of code to get an Analyzer that will use a tokeniez and an English stemmer, (for "bears" it will also return "bear" and vice versa) private static Analyzer createEnglishAnalyzer() { return new Analyzer() { public TokenStream tokenSt

Open / Close when Merging

2007-03-13 Thread DECAFFMEYER MATHIEU
Hi, I need to merge several indexes (I call them incremental index) with my main index. Each incremental index can contain the same url's of the main index, that's why I have a list of url's to update, that I will delete from the main index before merging with an incremental index. I have also

[Urgent] deleteDocuments fails after merging ...

2007-03-13 Thread DECAFFMEYER MATHIEU
Hi, I have put this question as "urgent" because I can notice I don't have often answers, If I'm asking the wrong way, please tell me... Before I delete a document I search it in the index to be sure there is a hit (via a Term object), When I find a hit I delete the document (with the same Term

RE: [Urgent] deleteDocuments fails after merging ...

2007-03-13 Thread DECAFFMEYER MATHIEU
you would get some valuable information from it. http://www.linuxforums.org/forum/linux-newbie/6322-asking-good-questions -2-a.html Erick On 3/13/07, DECAFFMEYER MATHIEU <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have put this question as "urgent" because I

RE: [Urgent] deleteDocuments fails after merging ...

2007-03-14 Thread DECAFFMEYER MATHIEU
m exists. What is mIndexReaderClone? Is that the same reader that is used in IndexSearcher? I'm not sure, but if you search with one IndexReader and delete the document using another IndexReader and then repeat the process, I think that the search would still result in a hit, but the

setBoost on Field

2007-03-30 Thread DECAFFMEYER MATHIEU
Hi, I am parsing this file called Logistics.htm I have a field named "headlines" that contains word "clients" among others. When I don't put a boost on this field, I have as score 0.06 when searching for clients. Then when I put a boost of "10", I have a score of 0.21 Yet I was expecting a score