> Nonetheless, both "creator" and the name of the
> creator are variables. We depend on the user to give
Of course, but you don't have unlimited fields right? So you know that
"creator" field is the creator of a book. You can provide the user with
complicated UI but internally you can build your own query.
> Query query = QueryParser.parse("creator:\"Elizabeth
> Castro\" AND category:\"Computer Science\"",
> "creator" AND "category", // Is this right?
> new StandardAnalyzer());
> indexSearcher.search(query);
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/queryParser/QueryParser.html
> How does the Luncene know it is AND instead of OR we
> want?
It doesn't, *you* tell it whether it's AND or OR. Think Google. Only Lucene
does OR by default (or so as I rememebred it).
/victor
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]