Re: fields contains equals term docs search

2019-04-19 Thread Tomoko Uchida
Hi, I'm not sure there are better ways to meet your requirement by querying, but how about considering static approaches? I would index an auxiliary field which has binary values (0/1 or "T"/"F") representing "has equals term on different fields" so that you can filtering out the docs (maybe by co

RE: early termination with query time sorting (but without index-time SortingMergePolicy)

2019-04-19 Thread Ayse Onalan
Formatting got messed up - fixed to make it more readable. -Original Message- From: Ayse Onalan Sent: Friday, April 19, 2019 1:29 PM To: java-user@lucene.apache.org Subject: early termination with query time sorting (but without index-time SortingMergePolicy) Hi Lucene users, I'm looki

early termination with query time sorting (but without index-time SortingMergePolicy)

2019-04-19 Thread Ayse Onalan
Hi Lucene users, I'm looking into ways to improve the filtered and sorted searches over our untokenized fields. For instance filter by fields A and B (could be term, prefix, range) and sort by A value. Lucene scores and collects the documents in DocId order. Normally DocIds are assigned increme

fields contains equals term docs search

2019-04-19 Thread Valentin Popov
Hi, I trying find the way, to search all docs has equals term on different fields. Like doc1 {"foo":"master", "bar":"master"} doc2 {"foo":"test", "bar":"master"} As result should be doc1 only. Right now, I'm get all terms for "foo", "bar" intersect it and get all terms could be both "foo", "bar"