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
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
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
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
how to update a field in lucene?
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
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(?);
/
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.
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
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
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);
_
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
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);
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.
&
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?
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
High,
Is-it possible to update a document's field without deleting the
document and add it again into the index?
Witch analyser I have to use to find text like this ''?
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.
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
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?
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?
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
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
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?
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
) );
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
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
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.
, 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
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
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
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]
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
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?
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?
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
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
How to parse this kind of query?
COM(2006) 0001
How to parse this query COM(2005) 0123 in LukeAll?
I have this result cocnumber: com
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
&
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
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
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.
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"));
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
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
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
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
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
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
Is it possible to update fields in an existing index.
If yes how to proceed.
Is it possible to change index structure in an existing index.
If yes how to proceed.
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
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
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
56 matches
Mail list logo