lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Benedetti <benedetti.ale...@gmail.com>
Subject Re: Sorting documents by child documents
Date Wed, 08 Jul 2015 11:17:03 GMT
I would like to get a deep understanding of your problem…
How do you want to sort a parent document by a normal field of children ??

Example :

Document 1
     Id: 5
     Children 1
         Id:51
         Title : "A"
     Children 2
         Id:52
         Title : "Z"

Document 2
     Id: 6
     Children 1
         Id:61
         Title : "C"
     Children 2
         Id:62
         Title : "B"

How can you sort the parent based on children fields ?
You can sort a parent based on a value calculated out of children fields (
after you calculate an unique value out of them Max ? Sum ? Concat ? ext
ext).

Can you explain better your problem ?

Cheers


2015-07-08 7:17 GMT+01:00 DorZion <Dorzion@gmail.com>:

> Hey,
>
> I'm using Solr 4.10.2 and I have child documents in every parent document.
>
> Previously, I used FunctionQuery to sort the documents:
>
>
> http://lucene.472066.n3.nabble.com/Sorting-documents-by-nested-child-docs-with-FunctionQueries-tp4209940.html
> <
> http://lucene.472066.n3.nabble.com/Sorting-documents-by-nested-child-docs-with-FunctionQueries-tp4209940.html
> >
>
> Now, I want to sort the documents by their child documents with normal
> fields.
>
> It doesn't work when I use the "sort" parameter.
>
> Thanks in advance,
>
> Dor
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Sorting-documents-by-child-documents-tp4216263.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

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