I could but I think that this could be handled natively in solr :) On Mon, Feb 9, 2015 at 4:58 PM, Alexandre Rafalovitch <arafa...@gmail.com> wrote:
> Could you inject an UpdateRequestProcesssor into the processing chain? Then > you could copy the field to a sort specific field and choose only one > value. And use docValues for faster sort too. > > Regards, > Alex > On 9 Feb 2015 4:33 am, "Flavio Pompermaier" <pomperma...@okkam.it> wrote: > > > In my use case it could be very helpful because I use the SIREn plugin to > > index arbitrary JSON-LD and this plugin automatically index also all > nested > > attributes as a Solr field. > > Thus I need for example to gather all entries with a certain value of the > > "type" attribute, ordered by "name" (but name could be a multivalued > > attribute in my use case :( ) > > I'd like to avoid to switch to Elasticsearch just to have this single > > feature. > > > > Thanks for the support, > > Flavio > > > > On Mon, Feb 9, 2015 at 10:02 AM, Anshum Gupta <ans...@anshumgupta.net> > > wrote: > > > > > Sure, that's correct and makes sense in some use cases. I'll need to > > check > > > if Solr functions support such a thing. > > > > > > On Mon, Feb 9, 2015 at 12:47 AM, Flavio Pompermaier < > > pomperma...@okkam.it> > > > wrote: > > > > > > > I saw that this is possible in Lucene ( > > > > https://issues.apache.org/jira/browse/LUCENE-5454) and also in > > > > Elasticsearch. Or am I wrong? > > > > > > > > On Mon, Feb 9, 2015 at 9:05 AM, Anshum Gupta <ans...@anshumgupta.net > > > > > > wrote: > > > > > > > > > Unless I'm missing something here, sorting on a multi-valued field > > > would > > > > be > > > > > non-deterministic in nature. > > > > > > > > > > On Sun, Feb 8, 2015 at 11:59 PM, Flavio Pompermaier < > > > > pomperma...@okkam.it> > > > > > wrote: > > > > > > > > > > > Hi to all, > > > > > > > > > > > > Is there any possibility that in the near future Solr could > support > > > > > sorting > > > > > > on multivalued fields? > > > > > > > > > > > > Best, > > > > > > Flavio > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Anshum Gupta > > > > > http://about.me/anshumgupta > > > > > > > > > > > > > > > > > > > > > -- > > > Anshum Gupta > > > http://about.me/anshumgupta > > > > > >