Re: SQL-Like Join in Lucene

2006-08-10 Thread hu andy
4. Search for records with filter. if the filter returns a lot of ids, it willn' t be fast. Recently I have a test. I customized a filter which get a list of ids from a mysql database table of size 5000. Then I invoke the search(query, filter, hitcollector), I took me more than 40s to retrieve th

Re: About the use of HitCollector

2006-08-08 Thread hu andy
aining many documents, it is a good idea to store the fieldYouWant array, since creating this array creates serious overhead. Best, Ryan On Aug 7, 2006, at 9:48 AM, hu andy wrote: > Martin, Thank you for your reply. > > But the Lucene API said: > This is called in an inner search

Re: About the use of HitCollector

2006-08-07 Thread hu andy
Simon On 8/7/06, hu andy <[EMAIL PROTECTED]> wrote: > Martin, Thank you for your reply. > > But the Lucene API said: > This is called in an inner search loop. For good search performance, > implementations of this method should not call > Searcher.doc(int)< file:///E:

Re: About the use of HitCollector

2006-08-07 Thread hu andy
Martin, Thank you for your reply. But the Lucene API said: This is called in an inner search loop. For good search performance, implementations of this method should not call Searcher.doc(int)or IndexReader.document(int)on every document number encountered Because I have to check a field in the

About the use of HitCollector

2006-08-07 Thread hu andy
How can I use HitCollector to iterate over every returned document? Thank you in advance.

Re: Consult some information about adding index while searching

2006-07-30 Thread hu andy
Thank you

Re: Consult some information about adding index while searching

2006-07-28 Thread hu andy
These codes are written in C#,. There is a C# version of Lucene 1.9, which can be downloaded from http://www.dotlucene.net This implements the indexing . public void CreateIndex() { try { AddDirectory(directory); writer.Optimize();

Re: Consult some information about adding index while searching

2006-07-27 Thread hu andy
Yes, I have closed IndexWriter. But it doesn't work. 2006/7/27, Michael McCandless <[EMAIL PROTECTED]>: > I met this problem: when searching, I add documents to index. Although I > instantiates a new IndexSearcher, I can't retrieve the newly added > documents. I have to close the program an

Consult some information about adding index while searching

2006-07-27 Thread hu andy
I met this problem: when searching, I add documents to index. Although I instantiates a new IndexSearcher, I can't retrieve the newly added documents. I have to close the program and enter the program, then it will be ok. The platform is win xp. Is it the fault of xp? Thank you in advance.

Re: Maybe a bug of lucene 1.9

2006-06-05 Thread hu andy
stribute it to you. I am glad You understand Chinese. How I should deliver it to you? Because the api includes a Chinese lexis which is nearly 10M in size. Maybe I can mail it to you. 2006/5/30, Erik Hatcher <[EMAIL PROTECTED]>: On May 29, 2006, at 6:34 AM, hu andy wrote: > I indexed

Re: Maybe a bug of lucene 1.9

2006-05-30 Thread hu andy
2006/5/29, hu andy <[EMAIL PROTECTED]>: I indexed a collection of Chinese documents. I use a special segmentation api to do the analysis, because the segmentation of Chinese is different from English. A strange thing happened. With lucene 1.4 or lucene 2.0, it will be all right to re

Maybe a bug of lucene 1.9

2006-05-29 Thread hu andy
I indexed a collection of Chinese documents. I use a special segmentation api to do the analysis, because the segmentation of Chinese is different from English. A strange thing happened. With lucene 1.4 or lucene 2.0, it will be all right to retrieve the corresponding documents given the terms

Ask for a better solution for the case

2006-04-28 Thread hu andy
Hi, I hava an application that need mark the retrieved documents which have been read. So the next time I needn't read the marked documents again. I have an idea that adding a particular field into the indexed document. But as lucene have no update method, I have to delete that document, and

What is the retrieval modle for lucene?

2006-04-10 Thread hu andy
I have seen in some documents that there are three kinds of retrieval modle which are used often: Boolean, vector space and probability. So I want to which is it that used by lucene. Thank you in advance

Re: Update or Delete Document for Lucene 1.4.x

2006-04-03 Thread hu andy
IndexReader.delete(int docNum) or IndexReader.delete(Term term) 2006/4/1, Don Vaillancourt <[EMAIL PROTECTED]>: > > Hi All, > > I need to implement the ability to update one document within a Lucene > collection. > > I haven't been able to find anything in the API. Is there a way to > update one

Speed up Indexing

2006-03-22 Thread hu andy
Hi,everyone. I have a large mount of xml files of size 1G. I use lucene(the dotNet edition) to index . There are 8 fields for a document, with 4 keyword fields and 4 unstored fields. I have set the minMergeDocs to 1 and mergeFactor to 100. It took about 2.5 hours (main memeory 3G, CPU p4 ) .I a

Re: question...

2006-03-16 Thread hu andy
Do you mean you pack the index files into the file *.luc.If it is the case, Lucene can't read it. If you put index files and *.luc together under some directory, That's OK. Lucene knows how to find these files 2006/3/14, Aditya Liviandi <[EMAIL PROTECTED]>: > > Hi all, > > > > If I want to embed

About index deletion

2006-03-16 Thread hu andy
Because I will delete the indexed document periodically, So the index files must be deleted after that. If I just want to delete some documents added before some past day from the index, How should i do it? Thank you in advance

who can tell me how lucene search in the index files

2006-03-14 Thread hu andy
I see there are seven different files with extentions .fnm .tis and etc. I just can't make sure how it looks up in the .tis file. Does lucene use Binary-Search to locate the term?

Re: sub search

2006-03-07 Thread hu andy
etween that and search described below: > > TermQuery termQuery = new TermQuery( > BooleanQuery bq = .. > bq.add(termQuery,true,false); > bq.add(query,true,false); > hits = Searcher.search(bq,queryFilter); > > > > -Original Message- > From: hu andy [mailto:[

Re: sub search

2006-03-07 Thread hu andy
2006/3/7, Anton Potehin <[EMAIL PROTECTED]>: > > Is it possible to make search among results of previous search? > > > > > > For example: I made search: > > > > Searcher searcher =... > > > > Query query = ... > > > > Hits hits = > > > > hits = Searcher.search(query); > > > > > > > > After it