Re: Another MultiFieldQueryParser question...

2007-01-15 Thread Doron Cohen
"Jiho Han" <[EMAIL PROTECTED]> wrote on 15/01/2007 10:50:14: > I looked through the archive a bit and found some Q & A's regarding this > but I didn't see anything definitive so I thought I'd ask again... > > Basically, I have a web page that can search through a database table > across multiple s

Re: My Category Search Problem

2007-01-15 Thread Kapil Chhabra
Hi Vijay, I have hit the same problem in the past and have evaluated various techniques to solve the same. 1. Using the QueryFilter The idea is to a) create BitSets for each category once initially b) run the search and extract the BitSet for the search results c) Logically "AND" the re

My Category Search Problem

2007-01-15 Thread Vijay Santhanam
Hi Lucene Users! I've been playing around with dotLucene on a few projects since for about 4 months, and I've found Lucene to be exceptionally powerful, speedy and thanks to LIA, really easy to use. But I've hit a problem that I fear will pose a performance problem for our architecture and Lu

Re: Highlighting brackets bug ?

2007-01-15 Thread Steven Rowe
heikki doeleman wrote: > One question though .. is there an easy way to download the sources > from the svn repository, in one go ? I did it now by right-clicking > links to files The "Source Code" section of the Lucene Java Developer Resources page

Re: ordered by the default

2007-01-15 Thread Chris Hostetter
: My search application is returning hits ordered by the default relevance. I : migrated my application from lucene 1.3 to lucene 2.0. I observed that the : documents are returned with a different order. I tested in using the new : Scorer (BooleanScorer2) and in using the old scorer class (Boolean

Re: Highlighting brackets bug ?

2007-01-15 Thread Mark Miller
Depends on your environment...I think you need an SVN client to efficiently check out many files...ever try tortoise SVN? I use eclipse and the subclipse plugin...working with the latest version of Lucene is as easy as adding the Lucene svn browse url and then checking Lucene out as a new proje

Re: How to open IndexWriter to append document?

2007-01-15 Thread Doron Cohen
Michael McCandless <[EMAIL PROTECTED]> wrote on 15/01/2007 03:10:03: > Doron Cohen wrote: > > David <[EMAIL PROTECTED]> wrote on 15/01/2007 00:36:28: > > > >> Thanks, I think I did not describe my problem exactly. > >> What I want to do is: > >> if the index file exist, append document > >>

Another MultiFieldQueryParser question...

2007-01-15 Thread Jiho Han
I looked through the archive a bit and found some Q & A's regarding this but I didn't see anything definitive so I thought I'd ask again... Basically, I have a web page that can search through a database table across multiple servers. So imagine that there are 100 different databases spread across

Re: Perform indexing and searching concurrently

2007-01-15 Thread spinergywmy
Hi, What I have done is I declare a reader = IndexReader.open(dir); then mSearcher = new IndexSearcher(reader); after the above I close the searcher but I didn't close the reader. And I'm wondering is it ok if I did not close the reader, and what will happened if I did not close it? Thanks

Re: How to open IndexWriter to append document?

2007-01-15 Thread Michael McCandless
Doron Cohen wrote: David <[EMAIL PROTECTED]> wrote on 15/01/2007 00:36:28: Thanks, I think I did not describe my problem exactly. What I want to do is: if the index file exist, append document if the index file does not exist, create a new , empty index file. How can I implement that?

Re: How to open IndexWriter to append document?

2007-01-15 Thread Michael McCandless
Bhavin Pandya wrote: What I want to do is: if the index file exist, append document if the index file does not exist, create a new , empty index file. Please check Lucene api for IndexReader... It has one method which u can use before opening IndexWriter..."indexExists(Directory direc

Re: Highlighting brackets bug ?

2007-01-15 Thread heikki doeleman
yes, thank you ! I built a highlighter jar from here http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/(revision 496265) and it is working fine ! One question though .. is there an easy way to download the sources from the svn reposi

ordered by the default

2007-01-15 Thread montif
default order is different between L1 and L2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: [EMAIL PROTECTED] Hi, My search application is returning hits ordered by the default relevance. I migrated my application from lucene 1.3 to l

Re: How to open IndexWriter to append document?

2007-01-15 Thread Bhavin Pandya
Hi david, What I want to do is: if the index file exist, append document if the index file does not exist, create a new , empty index file. Please check Lucene api for IndexReader... It has one method which u can use before opening IndexWriter..."indexExists(Directory directory)" -

Re: How to open IndexWriter to append document?

2007-01-15 Thread Doron Cohen
David <[EMAIL PROTECTED]> wrote on 15/01/2007 00:36:28: > Thanks, I think I did not describe my problem exactly. > What I want to do is: > if the index file exist, append document > if the index file does not exist, create a new , empty index file. > How can I implement that? If this is

Do frequent addition and deletion affect the search speed?

2007-01-15 Thread David
Hi all: I want use to Lucene to store GData format data, the user case is: 1. The data is only stored in Lucene, Lucene is used for Store, Index and Search. 2. each data have different attributes, user can specify their own attributes. 3. addition and deletion operations are frequent,

Re: How to open IndexWriter to append document?

2007-01-15 Thread David
Thanks, I think I did not describe my problem exactly. What I want to do is: if the index file exist, append document if the index file does not exist, create a new , empty index file. How can I implement that? Appreciate your help! 2007/1/15, Doron Cohen <[EMAIL PROTECTED]>: You shoul

Re: How to open IndexWriter to append document?

2007-01-15 Thread Doron Cohen
You should instantiate the writer with create=true : IndexWriter(store, StandardAnalyzer, True ) Because with create=False, an existing index is expected. David <[EMAIL PROTECTED]> wrote on 14/01/2007 23:56:23: > Hi all: > I want first erase the original index and then create an index

Re: How to retrieve the document by document ID?

2007-01-15 Thread Doron Cohen
Doron Cohen/Haifa/[EMAIL PROTECTED] wrote on 14/01/2007 23:04:27: > David <[EMAIL PROTECTED]> wrote on 14/01/2007 20:08:05: > > > thanks, How do Lucene give each document an ID when the document is > added? > > Is the document ID unchanged until the document is deleted? > > > > Not exactly. > > W