Hey, I'm using Solr 5.0.0 and I'm trying to sort documents with FunctionQueries. The problem is that I'm trying to sort those documents with their child documents elements.
Here is an example: I have three documents, one is parent, the others are child documents (_childDocuments_). { "id": "ArticleGuid", "title" : "Sorting Child Documents", "content_type": "article", "_childDocuments_": [ { "id": "CommentGuid", "content_type": "comment", "text": "CommentText" }, { "id": "CommentGuid2", "content_type": "comment", "text": "CommentText" } ] } * * This is just an example, the schema and the data aren't real.* I want to analyze & run an algorithm on the comments text, then sort the parent documents by it - *This would work with FunctionQuery, if I had one comment for each article and didn't use child documents*. I tried to use the LeafReadContext to get the children, but with no luck. Is there any way to reach the children through FunctionQuery, or even use something else to do what I want? Thanks in advance, Dor -- View this message in context: http://lucene.472066.n3.nabble.com/Sorting-documents-by-nested-child-docs-with-FunctionQueries-tp4209940.html Sent from the Solr - User mailing list archive at Nabble.com.