Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8565

SimpleQueryParser to support field filtering (aka Add field:text operator)

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • core/queryparser
    • None
    • New

    Description

      SimpleQueryParser lacks support for the `field:` operator for creating queries which operate on fields other than the default field. Seems likeĀ one can either get the parsed query to operate on a single field, or on ALL defined fields (+ weights). No support for specifying `field:value` in the query.

      It probably wasn't forgotten, but rather left out for simplicity, but since we are using this QP implementation more and more (mostly through Elasticsearch) we thought it would be useful to have it in.

      Seems like this is not too hard to pull off and I'll be happy to contribute a patch for it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              itamar Itamar Syn-Hershko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m