Otis Gospodnetic writes:
> And if you do not use QueryParser, then things work?
> If so, then this is likely caused by the fact that your Term contains a
> 'special' character, '-'.
>
Actually I was going to suggest a fix for '-' within words in the
query parser.
The was a suggested fix, that cha
Morus Walter wrote:
Michael Steiger writes:
I am using an IndexSearcher for querying the index but for deletions I
need to use the IndexReader. I now know that I can have Readers and a
Writer open concurrently but IndexReader.delete can only be used if no
Writer is open.
You should be aware t
Morus Walter wrote:
Michael Steiger writes:
My problem is that I do not know in advance if or when the "index won't
change for some time". I think of running a counter for all updates
(add, delete) and optimize after some threshold.
That's what lucene does anyway.
Adding documents means addin
Otis Gospodnetic writes:
> This looks nice.
> However, what happens if you have two Java processes that work on the
> same index, and give it different lock directories?
> They'll mess up the index.
>
Is that different to having two java processes using different java.io.tempdir?
I had that proble
Michael Steiger writes:
>
> I am using an IndexSearcher for querying the index but for deletions I
> need to use the IndexReader. I now know that I can have Readers and a
> Writer open concurrently but IndexReader.delete can only be used if no
> Writer is open.
>
You should be aware that an In
Otis Gospodnetic wrote:
And if you do not use QueryParser, then things work?
If so, then this is likely caused by the fact that your Term contains a
'special' character, '-'.
Otis,
correct. If I use a plain TermQuery it works.
That means if I want to use the QueryParser I must quote the special
ch
Michael Steiger writes:
>
> My problem is that I do not know in advance if or when the "index won't
> change for some time". I think of running a counter for all updates
> (add, delete) and optimize after some threshold.
>
That's what lucene does anyway.
Adding documents means adding segments,
I had to do something similar to make the application works with
lucene 1.3 final when upgrading from 1.3 RC1. I think it is better to
maintain back compatiable so existing users are not affected too much
when a new release is available.
I'd like to "me too" this sentiment. That change caused me a
I had to do something similar to make the application works with lucene 1.3 final when
upgrading from 1.3 RC1. I think it is better to maintain back compatiable so existing
users are not affected too much when a new release is available.
Regards,
Hui
-Original Message-
F
I've done something similar to configure my merge factor (but it was
outside my code), and am planning on setting the limit on boolean queries
this way as well. I think it's pretty clean especially if you use
org.apache.lucene.xxx properties with decent default values.
Adding this feature could pr
This looks nice.
However, what happens if you have two Java processes that work on the
same index, and give it different lock directories?
They'll mess up the index.
Should we try to prevent this by not offering this option, or should we
offer it, document it well, and leave it up to the user to p
And if you do not use QueryParser, then things work?
If so, then this is likely caused by the fact that your Term contains a
'special' character, '-'.
Otis
--- Michael Steiger <[EMAIL PROTECTED]> wrote:
> Hello,
> I have now partly integrated my Oracle based web-application with
> Lucene
> but
Clandes,
I'm not sure what the "body" field is that you're indexing. If it's a
database record, one option may be to store the database primary key for
the record as a field value -- basically a document ID. In that case,
you would do the search and get back matching document ID's. You could
t
Hello,
I have now partly integrated my Oracle based web-application with Lucene
but there is one search result I do not understand.
I'm using the Standardanalyzer for Document.add and for the
QueryParser.parse methods.
One field in one document1 added as Field.Text contains "Sysh1"
One field in
Kelvin Tan wrote:
On Mon, 01 Mar 2004 12:24:26 +0100, Michael Steiger said:
1. Concurrency of IndexWriter and IndexReader
It seems that it is not allowed to open an IndexWriter and an
IndexReader at the same time. But if one user is changing records in the
database (and therefore changing documen
Otis Gospodnetic wrote:
--- Michael Steiger <[EMAIL PROTECTED]> wrote:
Hello Lucene Users,
I have a web application using Oracle as the database and I want to
add
fulltext query capablities. My idea was to extend the existing
insert,
update and delete methods of my backend classes to add, delet
Morus Walter wrote:
Michael Steiger writes:
Hello Lucene Users,
I have a web application using Oracle as the database and I want to add
fulltext query capablities. My idea was to extend the existing insert,
update and delete methods of my backend classes to add, delete/add and
delete respectiv
Hello All,
I've come across my first gotcha with the system property
"java.io.tmpdir" as the lock directory.
Over here at APS we run lucene in two different servlet containers on
two different servers for both performance
and security reasons. One container gives read access to the collection
On Mar 2, 2004, at 1:23 PM, Supun Edirisinghe wrote:
now, one more question: what are the big performance hits from using a
FuzzyQuery. what are some bad cases to use it(eg. many words in the
phrase? long strings? ) would it be better to read up on the
Levenshtein
algorithm or to get into the inte
>>> [EMAIL PROTECTED] 02/27/04 12:09PM >>>
Hi folks,
I'm trying to get a better understanding of term vector support. Looking
at lucene-dev I'm understanding that with each document you store the
list of terms and their frequencies. Is this correct?
What uses are there for term vector other than
thanks, Erik, it was exactly what I was looking for. seems like you are
a very active writer in the java community--great work
now, one more question: what are the big performance hits from using a
FuzzyQuery. what are some bad cases to use it(eg. many words in the
phrase? long strings? ) would it
Hi all,
I have incorporated highlighting package
(http://home.clara.net/markharwood/lucene/highlight.htm)
but I am worried about the following issue.
If I want to display "body" field contents best
segments, containing term from query highlighted, I
have to define Field "body" as Stored.
So, co
You can use MultiFieldQueryParser, or you can construct a BooleanQuery
with two TermQueries as its two clauses, and combine them with OR.
Otis
--- Karl Koch <[EMAIL PROTECTED]> wrote:
> Hi,
>
> hat do I need to search for one single keyword in two fields of one
> index?
> Can someone provide an
Hi,
hat do I need to search for one single keyword in two fields of one index?
Can someone provide an easy example or tell me where to find it?
Cheers,
Karl
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.ne
I remember you sending this once beforea long time ago.
This time I'll stick it in sandbox/contributions/analyzers/...
Thanks!
Otis
--- David Spencer <[EMAIL PROTECTED]> wrote:
>
> Out of curiosity - does anyone use a Filter based on string (token)
> length. Use case is, say, you're indexin
25 matches
Mail list logo