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
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
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:
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
How can I use HitCollector to iterate over every returned document?
Thank you in advance.
Thank you
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();
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
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.
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
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
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
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
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
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
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
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
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
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?
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:[
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
21 matches
Mail list logo