This PrefixQuery will be very useful for hierarchical document systems where
you want to restrict search and updating operations to a specific sub
tree (see the draft of the new FAQ at
http://lucene.ontero.com/faq/faqmanager.cgi?file=chapter.search&toc=faq#q36)
.
You simply restrict your operation to documents whose path field contain
some prefix.
Will it be possible to use this prefix feature also to delete a subtree ?
Currently
the delete() method accepts only an index or a Term but not a Query.
We use hierarchical delete in our system when a sub tree of the document
store
is modified (delete, root folder renamed, etc).
Tal
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Doug Cutting
> Sent: Friday, June 15, 2001 9:22 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [Lucene-dev] CVS commit: 'lucene/com/lucene/queryParser
> QueryParser.jj,1.3'
>
>
> Update of /cvsroot/lucene/lucene/com/lucene/queryParser
> In directory usw-pr-cvs1:/tmp/cvs-serv6003
>
> Modified Files:
> QueryParser.jj
> Log Message:
> An asterisk at the end of a term (before the boost) makes a PrefixQuery.
>
> _______________________________________________
> Lucene-dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/lucene-dev
>
_______________________________________________
Lucene-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lucene-dev