ldkjdk commented on PR #730: URL: https://github.com/apache/lucene/pull/730#issuecomment-1158691084
yes, for a search case BooleanQuery.Builder bQuery = new BooleanQuery.Builder(); TermQuery contents= new TermQuery(new Term("contents", "hello")); bQuery.add(contents, BooleanClause.Occur.MUST); Query idq= IntPoint.newRangeQuery("id", 140, 150); bQuery.add(idq, BooleanClause.Occur.FILTER); Query q = bQuery.build();//MultiFieldQueryParser.parse(key, fields, flags); TopDocs td = searcher.search(q, 10); I think, if key word "hello" have matched a lot of record , perhaps will increase computational cost for "skipper.skipTo(target) + 1" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org