lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Snels" <nick.sn...@gmail.com>
Subject Restrict result returned by Morelikethis
Date Sat, 23 Dec 2006 19:41:18 GMT
Hi,

I have made a Morelikethis query to look up documents that match a certain
document id. This results in a search of the whole index. I would like the
Morelikethis query to search only part of the index. How can I do this?

I have already tried to create a BooleanQuery, like:

BooleanQuery comboQuery = new BooleanQuery();
comboQuery.add(mltQuery, true, false);
comboQuery.add(originalQuery, true, false);

But I get the error: cannot find symbol
                           [javac] symbol  : method add(
org.apache.lucene.search.Query,boolean,boolean)

What is the correct way to restrict the search area of a Morelikethis query?
Any help is welcome. Thanks.

Kind regards,

Nick Snels

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message