Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3955

Return only matched multiValued field

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0
    • None
    • search

    Description

      Assuming a multivalued, stored and indexed field named "comment". When performing a search, it would be very helpful if there were a way to return only the values of "comment" which contain the match. For example:

      When searching for "gold" instead of getting this result:

      <doc>
      <arr name="comment">
      <str>Theres a lady whos sure</str>
      <str>all that glitters is gold</str>
      <str>and shes buying a stairway to heaven</str>
      </arr>
      </doc>

      I would prefer to get this result:

      <doc>
      <arr name="comment">
      <str>all that glitters is gold</str>
      </arr>
      </doc>

      (psuedo-XML from memory, may not be accurate but illustrates the point)

      Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dotancohen Dotan Cohen
            Votes:
            8 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated: