Re: Sorting documents by nested / child docs with FunctionQueries

2015-07-07 Thread DorZion
Now I'm trying to sort the children by normal field and not by function values. Is there any way to do so? Thanks, Dor -- View this message in context: http://lucene.472066.n3.nabble.com/Sorting-documents-by-nested-child-docs-with-FunctionQueries-tp4209940p4216169.html Sent from the Solr -

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-24 Thread Mikhail Khludnev
no way. it's SOLR-6096 aka SOLR-6700 On Thu, Jun 25, 2015 at 9:16 AM, מאיה גלעד wrote: > Hey > Your example works on my cloud but my problem didn't resolve. > > I'be checked and found the following : > 1. When a child is created with multivalues it can be queried correctly > with the url you've

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-24 Thread Mikhail Khludnev
Just pulled and launched Solr 5.2.1 dropped multivalued child into see data below. Response is quite correct: "id":"22", "COLOR_s":"Blue","SIZE_ss":["XL","XXL"]}]}] http://localhost:8983/solr/solr/select?q={!parent+which%3Dtype_s%3Aparent}%2BCOLOR_s%3ABlue+%2BSIZE_ss%3AXL&fl=id%2C[child+parentFi

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-22 Thread Maya G
I've tried your solution and encountered a problem. My child document has a multi-valued field. When I query the doc by its' guid, all of the field's values are returned. When I use the join block query only one value is returned for the multi-value field. Do you have any suggestions? Thank you

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-09 Thread Mikhail Khludnev
it should be something like q": "{!parent which=$parent_filter scoreMode=Max}+{!lucene v=$child_filter} +{!func v=$sort_func}", "parent_filter": "content_type:parent" "child_filter": "content_type:child" "indent": "true" "fl": "*,[child parentFilter=$parent_filter childFilter=$child_filter]" "sort

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-09 Thread DorZion
Thanks for your reply. I couldn't make it work. Everything went fine when I applied the patch and compiled Solr, but I couldn't use the FunctionQuery with it. My FunctionQuery accesses the field "text" in the document, however the parent doesn't have that field, so the plugin raises an exception.

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-05 Thread Mikhail Khludnev
pickup the patch https://issues.apache.org/jira/browse/SOLR-5882 and/or chase committers. On Fri, Jun 5, 2015 at 10:35 AM, DorZion wrote: > 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 chi