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

David Smiley commented on SOLR-3955:
------------------------------------

I could imagine a new SearchComponent similar to the highlighter (specifically 
the default highlighter) what would create a MemoryIndex for each value and 
test the search to see if it matched.  Though it would be faster if there were 
specific optimizations for certain queries like spatial in which doing that is 
way more work than a simple shape intersection test.  I guess that would be 
best done as a separate specialized SearchComponent.

> Return only matched multiValued field
> -------------------------------------
>
>                 Key: SOLR-3955
>                 URL: https://issues.apache.org/jira/browse/SOLR-3955
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 4.0
>            Reporter: Dotan Cohen
>              Labels: features
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to