[ 
https://issues.apache.org/jira/browse/LUCENE-9560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17207717#comment-17207717
 ] 

Michael Sokolov commented on LUCENE-9560:
-----------------------------------------

This will be a big help! Matching terms in a fixed position range will enable 
the positions to be apportioned as sub-fields, right?

Let's also consider supporting negations and disjunctions (of position range) 
so we can eg match a term in any sub-field except one (or more), or match in 
any of a number of sub-fields at once? Certainly we should handle the one-range 
positive case as a first step, but maybe leave a place in the API for multiple 
ranges?

> Position aware TermQuery
> ------------------------
>
>                 Key: LUCENE-9560
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9560
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: core/search
>            Reporter: Haoyu Zhai
>            Priority: Major
>
> In our work, we index most of our fields into an "all" field (like 
> elasticsearch) to make our search faster. But at the same time we still want 
> to support some of the field specific search (like {{title}}), so currently 
> our solution is to double index them so that we could do both "all" search as 
> well as specific field search.
> I want to propose a new term query that accept a range in a specific field to 
> search so that we could search on "all" field but act like a field specific 
> search. Then we need not to doubly index those field.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to