lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cole worldforsolr <coleworldfors...@gmail.com>
Subject Re: Return docs with only the matched fields for a query
Date Tue, 12 Jul 2016 10:02:37 GMT
Hi Josium,

Have to try something like this
http://localhost:8983/solr/mycollection/select?fq=Hobbit:*&indent=on&q=*:*&wt=json

This will return all documents that contain the field Hobbit ONLY.

Well, I'm not very sure to understand what you seeking for, excuse me if my
answer is out of topic.

Best regards,
Cole.
On Tue, Jul 12, 2016 at 9:24 AM, Prasanna Josium <
prasanna.josium@clustr.co.in> wrote:

> Hi all,
>
> My  requirement is in line with
> https://issues.apache.org/jira/browse/SOLR-3955
> I'm working on a project that has very low network bandwidth for the
> clients.
> I'm using Solr 4.10
>
> The problem:
> I have ~ 1M documents with multiple fields(~50),  many of them are
> indexed, stored and some of them are multivalued.
> Queries are searched across all these fields and often, only a few of the
> fields have matching terms in them.
>
> When I search for a term="Hobbit", I want to return documents only with
> the matching fields where "Hobbit" is found.
> All other un matched fields in the result doc shall be dropped from the
> result set.
>
> Naïve solution:
> The obvious solution I could think of was to implement a custom search
> component based on the "Highlighter" component to filter out unwanted
> fields.
> But I'm not sure of the performance penalty for large number of fields  or
> many multi valued fields / document.
>
> Question:
> Is there a better way to solve this problem? Apparently I'm not the first
> person facing such an issue.
>
> Thanks
> Cheers
> Prasanna
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message