lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira>
Subject Re: Limit fields returned in solr based on content
Date Thu, 24 Dec 2015 21:21:16 GMT
You could create a custom DocTransformer. They can enhance the fields
included in the search results. So, instead of fl=somefield you could
have fl=[my-filter:somefield], and your MyFieldDocTransformer makes the
decision as to whether or not to include somefield in the output.

This would of course, require some Java coding.


On Thu, Dec 24, 2015, at 09:17 PM, Jamie Johnson wrote:
> Sorry hit send too early
> Is there a mechanism in solr/lucene that allows customization of the
> fields
> returned that would have access to the field content and payload?
> On Dec 24, 2015 4:15 PM, "Jamie Johnson" <> wrote:
> > I have what I believe is a unique requirement discussed here in the past
> > to limit data sent to users based on some marking in the field.
> >

View raw message