ok thanks! if I got it right there are two options. First, including the
file id into the query to only match a special file. For example, I store
the file path and the file content into the CLucene db. The file path
would be my file id I add into the query term.
Second, when updating a file in the database I first add the file to a
temp db and search this single entry database for the queries from my list
of live queries.
Any suggestion/ideas which solution performs better? Indexing the file
twice sounds slower to me but maybe I'm wrong?
thank you,
Clemens
On Sun, 07 Aug 2011 11:26:13 +1200, Ben van Klinken
<[email protected]> wrote:
> Another approach would be to create your indexes to a temporary location
> and
> search that location for your live query before merging into the main
> index.
>
> Ben
>
> On Sun, Aug 7, 2011 at 9:05 AM, Itamar Syn-Hershko
> <[email protected]>wrote:
>
>> There isn't such thing built into clucene nor Java Lucene. You are
>> going to
>> have to keep a list of document IDs that once matched a query, and to
>> perform searches in the background every now and then with that
>> document ID
>> in it (use your IDs, not Lucene's internal docids).
>>
>>
>> On Sat, Aug 6, 2011 at 9:12 AM, Clemens <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> not sure if this question better goes to the java lucene mailing list
>>> but
>>> you probably can help me too.
>>>
>>> I'm using clucene to implement a desktop search engine for the Haiku
>>> OS. I
>>> like to notify the user when a new document matches an existing query
>>> or a
>>> document not match anymore. Is there something like this build in?
>>> Otherwise I just need to check if an modified document matches a query.
>>>
>>> How can I check if a document satisfy a query? Or do I have to modify
>>> the
>>> query to only search a special document? What is the best to do it?
>>>
>>> thank you,
>>> Clemens
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>>> The must-attend event for mobile developers. Connect with experts.
>>> Get tools for creating Super Apps. See the latest technologies.
>>> Sessions, hands-on labs, demos & much more. Register early & save!
>>> http://p.sf.net/sfu/rim-blackberry-1
>>> _______________________________________________
>>> CLucene-developers mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> The must-attend event for mobile developers. Connect with experts.
>> Get tools for creating Super Apps. See the latest technologies.
>> Sessions, hands-on labs, demos & much more. Register early & save!
>> http://p.sf.net/sfu/rim-blackberry-1
>> _______________________________________________
>> CLucene-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/clucene-developers
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
CLucene-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clucene-developers