Sorting with MultiSearcher

2007-11-08 Thread WATHELET Thomas
Hi, I have few Indexes with the same structure. I'm using MultiSearcher to search into those indexes and when I try to sort the result by field the result is sort by field and by index (we have all results from index1 and then index2,...) but I would like to have the result sorted on the all result

RE: Sorting with MultiSearcher

2007-11-08 Thread WATHELET Thomas
EMAIL PROTECTED] Sent: 08 November 2007 13:22 To: java-user@lucene.apache.org Subject: Re: Sorting with MultiSearcher Any other info or code snippets? I sort on multisearchers all the time and have never seen that behavior. - Mark (sorting on multisearchers since Lucene 1.4 ) WATHELET Thomas w

Max length

2008-04-15 Thread WATHELET Thomas
Hi my question is very simple, Is there a size limitation for the text to index Becaus I try to index a long document and the content of this one is stored correctly into the index but it seems that the indexation stopp at the middle of the document.I can't find any word located after the middle. A

Exact string

2008-04-30 Thread WATHELET Thomas
Hello, How can I procced to to find an exact string match in lucene with somes articles in my search query. For exemple: if I search for "a ball" I just want results with a ball and not "the ball" incled in the result? Is it possible to have a blank stop word list? I have to set something special t

Update an existing index

2006-11-08 Thread WATHELET Thomas
how to update a field in lucene?

Index creation

2007-01-29 Thread WATHELET Thomas
How could I optimize my index creation? // setUseCompoundFile(?); // setMaxBufferedDocs(?); // setMergeFactor(?); How could I reduce the disk access because I work with more than 100 documents? Thanks

RE: Index creation

2007-01-30 Thread WATHELET Thomas
ink. Otis - Original Message ---- From: WATHELET Thomas <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Monday, January 29, 2007 4:16:22 AM Subject: Index creation How could I optimize my index creation? // setUseCompoundFile(?); // setMaxBufferedDocs(?); /

RAMDirectory

2007-01-30 Thread WATHELET Thomas
I'm using RAMDirectory If the number of documents to index is less than the maxBufferedDocs properties nothing is write into my index. ex: RAMDirectory ramDir =new RAMDirectory (); this.indexWriter.addIndexes(new Directory[] { ramDir }); ramWriter.close(); indexWriter.

RAMDirectory 2

2007-01-30 Thread WATHELET Thomas
P.S. At one point I tried doing an in-memory index using the RAMDirectory and then merging it with an on-disk index and it didn't work. The RAMDirectory never flushed to disk... leaving me with an empty index. Only when the number of documents is greather than the maxBufferedDocs properties. What

RE: RAMDirectory 2

2007-01-30 Thread WATHELET Thomas
s was fixed a while back. Running HEAD or at least 2.0.0? Otis - Original Message From: WATHELET Thomas <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, January 30, 2007 11:22:52 PM Subject: RAMDirectory 2 P.S. At one point I tried doing an in-memory inde

RE: Deleting document by file name

2007-02-01 Thread WATHELET Thomas
do something like this: public class Index extends IndexModifier { ... public int deleteDocuments(String field, String value) throws IOException { return super.deleteDocuments(new Term(field, value)); } use like this : index.deleteDocuments(filed name, field value); _

RE: how to query range of Date by given date string?

2007-02-26 Thread WATHELET Thomas
Parse your date with this classe DateTools.stringToDate to search and DateTools.dateToString() to store into index. -Original Message- From: 李寻欢晕菜了 [mailto:[EMAIL PROTECTED] Sent: 26 February 2007 11:17 To: java-user@lucene.apache.org Subject: how to query range of Date by given date st

RamDirectory vs IndexWriter

2007-02-28 Thread WATHELET Thomas
I don't really understand the difference between using the ramDirectory and using IndexWriter. What's the difference between using ramDirectory instead of using IndexWriter with those properties set to: setMergeFactor(1000);setMaxMergeDocs(1);setMaxBufferedDocs(1);

RE: RamDirectory vs IndexWriter

2007-02-28 Thread WATHELET Thomas
lto:[EMAIL PROTECTED] Sent: 28 February 2007 16:29 To: java-user@lucene.apache.org Subject: Re: RamDirectory vs IndexWriter Le Mercredi 28 Février 2007 16:19, WATHELET Thomas a écrit : > I don't really understand the difference between using the ramDirectory > and using IndexWriter. &

Package org.apache.lucene.search.highlight

2007-03-04 Thread WATHELET Thomas
How can I add the Package org.apache.lucene.search.highlight into my projects because the standart Lucene api 2.1.0 do not content this package?

RE: Package org.apache.lucene.search.highlight

2007-03-04 Thread WATHELET Thomas
org.apache.lucene.search.highlight The contrib/highlighter directory contains the jar file that is needed. Ulf On 04.03.2007, at 10:58, WATHELET Thomas wrote: > How can I add the Package org.apache.lucene.search.highlight i

Update documents

2007-06-27 Thread WATHELET Thomas
High, Is-it possible to update a document's field without deleting the document and add it again into the index?

Query in lucene

2007-07-18 Thread WATHELET Thomas
Witch analyser I have to use to find text like this ''?

Multisearch

2006-03-06 Thread WATHELET Thomas
I made a multi search into my Lucene index. It's work properly but I would like to know if it's possible to know in witch index de document belong to.

RE: Multisearch

2006-03-06 Thread WATHELET Thomas
Thanks a lot. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: 06 March 2006 16:25 To: java-user@lucene.apache.org Subject: Re: Multisearch On Mar 6, 2006, at 10:05 AM, WATHELET Thomas wrote: > I made a multi search into my Lucene index. It's work proper

Lucene version 1.9

2006-03-07 Thread WATHELET Thomas
I've created an index with the Lucene version 1.9 and when I try to open this index I have always this error mesage: java.lang.ArrayIndexOutOfBoundsException. if I use an index built with the lucene version 1.4.3 it's working. Wath's wrong?

segments.new

2006-03-15 Thread WATHELET Thomas
High, I have a trouble this the indexation process, sometimes I retrieve an error like the file segments.new can't be rename or delete something like that. What's happened?

RE: segments.new

2006-03-15 Thread WATHELET Thomas
The error only occurs on Windows. When I run the same test on Linux I do not get the error. Not much help I know... but at least you are not alone. Patrick On 15/03/06, WATHELET Thomas <[EMAIL PROTECTED]> wrote: > High, > > I have a trouble this the indexation process, som

RE: segments.new

2006-03-15 Thread WATHELET Thomas
e. My current thinking is that it is caused by my virus checker opening the files. The error only occurs on Windows. When I run the same test on Linux I do not get the error. Not much help I know... but at least you are not alone. Patrick On 15/03/06, WATHELET Thomas <[EMAIL PROTECTED]> wr

Lucene 1.9.1 Query

2006-03-22 Thread WATHELET Thomas
How to replace this Expression Query query = QueryParser.parse(this.searchvalue, "text", new StandardAnalyzer()); in Lucene 1.9.1 because the method parse is deprecated?

RE: Lucene 1.9.1 Query

2006-03-22 Thread WATHELET Thomas
quot;, new StandardAnalyzer()); Query query = qp.parse(this.searchvalue); Cheers, Tim. -Original Message----- From: WATHELET Thomas [mailto:[EMAIL PROTECTED] Sent: 22 March 2006 11:25 To: java-user@lucene.apache.org Subject: Lucene 1.9.1 Query How to replace this Expression Q

RE: Lucene 1.9.1 Query

2006-03-22 Thread WATHELET Thomas
) ); Query query = qp.parse( searchvalue ); regards, Koji > -Original Message- > From: WATHELET Thomas [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 22, 2006 8:25 PM > To: java-user@lucene.apache.org > Subject: Lucene 1.9.1 Query > > > How to r

Query question

2006-03-22 Thread WATHELET Thomas
I use Lucene 1.9.1 How to parse an unc path like \\tom\share\5\tom.doc in a query to search in the index key field? String key="\\tom\share\5\tom.doc "; Ex: Hits hits = multisearch.search(new TermQuery(new Term("key", QueryParser.escape(key; I ask this question because this key exist int

delte documents into index

2006-03-24 Thread WATHELET Thomas
Is it possible to write into the index and delete some documents in the same time? If yes could you show me me how to proceed. I use Lucene 1.9.1 Thanks in advence.

RE: delte documents into index

2006-03-25 Thread WATHELET Thomas
, WATHELET Thomas wrote: > Is it possible to write into the index and delete some documents in the > same time? Yes, have a look at the IndexModifier class. -- http://www.danielna

RE: delte documents into index

2006-03-25 Thread WATHELET Thomas
Ok thanks -Original Message- From: Tom Hill [mailto:[EMAIL PROTECTED] Sent: Sat 3/25/2006 12:39 AM To: java-user@lucene.apache.org Cc: Subject: Re: delte documents into index Hi Thomas, > > Is

RE: delte documents into index

2006-03-25 Thread WATHELET Thomas
use one IndexModifier object for all your process -Original Message- From: Daniel Naber [mailto:[EMAIL PROTECTED] Sent: Sat 3/25/2006 12:07 PM To: java-user@lucene.apache.org Cc: Subject: Re: delte documents into index

BooleanQuery

2006-06-21 Thread WATHELET Thomas
Why I retrive hits with this query : +doccontent:avian +doctype:AM +docdate:[2005033122000 TO 2006062022000] and not with this one +doccontent:avian influenza +doctype:AM +docdate:[2005033122000 TO 2006062022000]

RE: BooleanQuery

2006-06-21 Thread WATHELET Thomas
al- De: WATHELET Thomas [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 21 de junio de 2006 15:40 Para: java-user@lucene.apache.org Asunto: BooleanQuery Why I retrive hits with this query : +doccontent:avian +doctype:AM +docdate:[2005033122000 TO 2006062022000] and not wit

Can't open index

2006-06-22 Thread WATHELET Thomas
I'm creating my index file and in the same time I try to do some searches inside. Sometimes I retrieve this error message: "\\tradluxstmp01\JavaIndex\tra\index_FR\_335.fnm (The system cannot find the file specified)" What I have to do or what's happen?

Lock File

2006-06-29 Thread WATHELET Thomas
When I create an index withe the class IndexModifier in Lucene 1.9.1there is a lock file created on a temp folder. My question is: Is it possible to disable this option? If yes how to procede?

RE: Lock File

2006-06-30 Thread WATHELET Thomas
It's not possible to change lockDir because it's a final static varriables? Is it possible to change the lockDir? -Original Message- From: Michael McCandless [mailto:[EMAIL PROTECTED] Sent: 29 June 2006 22:26 To: java-user@lucene.apache.org Subject: Re: Lock File > When I create an ind

RE: Lock File

2006-06-30 Thread WATHELET Thomas
Ok thanks I understand now. Thanks a lot. -Original Message- From: Michael McCandless [mailto:[EMAIL PROTECTED] Sent: 30 June 2006 16:10 To: java-user@lucene.apache.org Subject: Re: Lock File > It's not possible to change lockDir because it's a final static > varriables? > Is it possib

Query?

2006-07-11 Thread WATHELET Thomas
How to parse this kind of query? COM(2006) 0001

Query using parenthesis

2006-07-11 Thread WATHELET Thomas
How to parse this query COM(2005) 0123 in LukeAll? I have this result cocnumber: com

RE: Query using parenthesis

2006-07-11 Thread WATHELET Thomas
ssage- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: 11 July 2006 15:14 To: java-user@lucene.apache.org Subject: Re: Query using parenthesis On Jul 11, 2006, at 8:57 AM, WATHELET Thomas wrote: > How to parse this query COM(2005) 0123 in LukeAll? > I have this result cocnumber: com &

RE: Query?

2006-07-11 Thread WATHELET Thomas
d is: SEC(2006) 0350 The resulting query that Lucene produces : +docnumber:SEC\(2006\) 0350 I'm using the class simpleanalyser for the search. And I have no result but this data SEC(2006) 0350 is present in the index "docnumber field" Thank's in advence Wathelet Thomas -Origi

RE: Query?

2006-07-11 Thread WATHELET Thomas
ownloading a copy of Luke so you can examine your index and see exactly what got indexed. That's saved me a bunch of times I wonder whether you want to store this UN_TOKENIZED instead? Best Erick On 7/11/06, WATHELET Thomas <[EMAIL PROTECTED]> wrote: > > I have an index w

FileNotFoundException

2006-08-01 Thread WATHELET Thomas
When the indexing process still running on a index and I try to search something on this index I retrive this error message: java.io.FileNotFoundException: \\tradluxstmp01\JavaIndex\tra\index_EN\_2hea.fnm (The system cannot find the file specified) How can I solve this.

RE: FileNotFoundException

2006-08-01 Thread WATHELET Thomas
For the index process I use IndexModifier class. That happens when I try to search something into the index in the same time that the index process still running. the code for indexing: System.setProperty("org.apache.lucene.lockDir", System .getProperty("user.dir"));

RE: FileNotFoundException

2006-08-01 Thread WATHELET Thomas
s possible that you're writer hasn't written anything yet. 3> (so I can't count). Have you used Luke to open your index to see if that works (and the file is in the place you expect)? FWIW Erick On 8/1/06, WATHELET Thomas <[EMAIL PROTECTED]> wrote: > > For the ind

RE: FileNotFoundException

2006-08-01 Thread WATHELET Thomas
writer had closed before you looked. Erick On 8/1/06, WATHELET Thomas <[EMAIL PROTECTED]> wrote: > > It's the same when I try to open the index with luke > > -Original Message- > From: Erick Erickson [mailto:[EMAIL PROTECTED] > Sent: 01 August 2006 15:24 > T

RE: FileNotFoundException

2006-08-01 Thread WATHELET Thomas
uns on the index and parallally search function is also running. thx, supriya WATHELET Thomas wrote: > I'm sure that it's the good location. > When the index process is finished then I can access the index. > I know why but I don't know how to solve it. > When I in

RE: FileNotFoundException

2006-08-01 Thread WATHELET Thomas
Yes -Original Message- From: Michael McCandless [mailto:[EMAIL PROTECTED] Sent: 01 August 2006 17:10 To: java-user@lucene.apache.org Subject: Re: FileNotFoundException > I think its a directory access synchronisation problem, I have also > posted about this before. The scenario can be

RE: FileNotFoundException

2006-08-01 Thread WATHELET Thomas
Ok if I well understood I have to put the lock file at the same place in my indexing process and searching process. -Original Message- From: Michael McCandless [mailto:[EMAIL PROTECTED] Sent: 01 August 2006 17:14 To: java-user@lucene.apache.org Subject: Re: FileNotFoundException > Yes

RE: FileNotFoundException

2006-08-01 Thread WATHELET Thomas
Ok thanks a lot. -Original Message- From: Michael McCandless [mailto:[EMAIL PROTECTED] Sent: 01 August 2006 17:19 To: java-user@lucene.apache.org Subject: Re: FileNotFoundException > Ok if I well understood I have to put the lock file at the same place in > my indexing process and searc

Update index

2006-08-23 Thread WATHELET Thomas
Is it possible to update fields in an existing index. If yes how to proceed.

Change index structure

2006-08-23 Thread WATHELET Thomas
Is it possible to change index structure in an existing index. If yes how to proceed.

RE: Change index structure

2006-08-23 Thread WATHELET Thomas
If I want to add a new field for exemple into an existing index -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: 23 August 2006 11:57 To: java-user@lucene.apache.org Subject: Re: Change index structure On Aug 23, 2006, at 3:50 AM, WATHELET Thomas wrote: > Is

RE: Change index structure

2006-08-24 Thread WATHELET Thomas
Thanks a lot. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: 23 August 2006 14:26 To: java-user@lucene.apache.org Subject: Re: Change index structure On Aug 23, 2006, at 6:22 AM, WATHELET Thomas wrote: > If I want to add a new field for exemple into an exist

Escaping escape char

2006-08-31 Thread WATHELET Thomas
Hi, I have an index with a field 'content' (tokenized, stored, indexed) using Lucene 1.9.1. I tried to search this text in exact string: "european parliament resolution on the Commission report on the regional meetings arranged by the Commission in 1998-1999 on the common fisheries policy after 2