Re: Dynamic schema failure for child docs not using "_childDocuments_" key

2020-05-13 Thread ART GALLERY
check out the videos on this website TROO.TUBE don't be such a sheep/zombie/loser/NPC. Much love! https://troo.tube/videos/watch/aaa64864-52ee-4201-922f-41300032f219 On Tue, May 5, 2020 at 8:32 PM mmb1234 wrote: > > I am running into a exception where creating child docs fails unless

Dynamic schema failure for child docs not using "_childDocuments_" key

2020-05-05 Thread mmb1234
I am running into a exception where creating child docs fails unless the field already exists in the schema (stacktrace is at the bottom of this post). My solr is v8.5.1 running in standard/non-cloud mode. $> curl -X POST -H 'Content-Type: application/json' 'http://localhos

Re: child docs

2019-03-11 Thread Mikhail Khludnev
Hello, John. The choice is guided by the form of search results. You need to ask what you need to paginate, count numFound. You need to index as top level docs what you need to find. On Thu, Mar 7, 2019 at 9:08 PM John Blythe wrote: > hi all! > > curious about how child docs and pe

Re: child docs

2019-03-07 Thread John Blythe
sted docs have quite a number of “gotchas”. > > If you really need nested docs, your first option would require the entire > “platonic” parent and all child docs to be re-indexed every time, so I’d go > with 2 for that reason alone. > > Best, > Erick > > > O

Re: child docs

2019-03-07 Thread Erick Erickson
tchas”. If you really need nested docs, your first option would require the entire “platonic” parent and all child docs to be re-indexed every time, so I’d go with 2 for that reason alone. Best, Erick > On Mar 7, 2019, at 10:08 AM, John Blythe wrote: > > hi all! > > curious abou

child docs

2019-03-07 Thread John Blythe
hi all! curious about how child docs and performance interact. i'll have a bunch of transactions coming in from various entities. i'm debating nesting them all under a single, 'master' parent entity or to have the parent and children be entity specific. so either: [platon

Re: Parent-child query; subqueries on child docs of the same set of fields

2018-07-08 Thread TK Solr
Mikhail, Actually, your suggestion worked! I was making a typo on the field name. Thank you very much! TK p.s. I have found a mention of _query_ "magic field" in the Solr Reference Guide On 7/8/18 11:04 AM, TK Solr wrote: Thank you. This is more promising because I see the second clause i

Re: Parent-child query; subqueries on child docs of the same set of fields

2018-07-08 Thread TK Solr
Thank you. This is more promising because I see the second clause in parsedquery. But it is hitting zero document. The debug query output looks like this. explain is empty: rawquerystring":"_query_:{!parent which=\"isParent:true\" v='attrname:genre AND attrvalue:drama'} AND _query_:{!parent

Re: Parent-child query; subqueries on child docs of the same set of fields

2018-07-04 Thread Mikhail Khludnev
agh... It's my pet peeve. what about q= {!parent which="isParent:true" v='attrname:genre AND attrvalue:drama'} AND {!parent which="isParent:true" v='attrname:country AND attrvalue:USA'} ^leading space q=_query_:{!parent which="isParent:true" v='attrname:genre AND attrvalue:drama'} AND _query_:{!pa

Re: Parent-child query; subqueries on child docs of the same set of fields

2018-07-03 Thread TK Solr
Thank you, Mikhail. But this didn't work. The first {!parent which='...' v='...'} alone works. But the second {!parent ...} clause is completely ignored. In fact, if I turn on debugQuery, rawquerystring and querystring have the second query but parsedquery and parsedquery_toString only have the f

Re: Parent-child query; subqueries on child docs of the same set of fields

2018-07-03 Thread Mikhail Khludnev
Hello, q={!parent which="isParent:true" v='attrname:genre AND attrvalue:drama'} AND {!parent which="isParent:true" v='attrname:country AND attrvalue:USA'} On Tue, Jul 3, 2018 at 3:35 PM TK Solr wrote: > I have a document with child documents like: > > > maindoc_121 > true > c

Parent-child query; subqueries on child docs of the same set of fields

2018-07-03 Thread TK Solr
I have a document with child documents like: maindoc_121 true child_121_1 genre drama child_121_2 country USA The child documents have the same set of fields. I can write a query that has a child which has attrname=genre and

AW: Adding tag to fq makes query return child docs instead of parent docs

2018-06-26 Thread Florian Fankhauser
to fq makes query return child docs instead of parent docs On 6/26/2018 7:22 AM, Florian Fankhauser wrote: > Now for some reason I want to exclude the above filter-query from a > facet-query. Therefore I need to add a tag to the filter-query: > > q={!tag=datefilter}{!parent which=doc

Re: Adding tag to fq makes query return child docs instead of parent docs

2018-06-26 Thread Shawn Heisey
On 6/26/2018 7:22 AM, Florian Fankhauser wrote: Now for some reason I want to exclude the above filter-query from a facet-query. Therefore I need to add a tag to the filter-query: q={!tag=datefilter}{!parent which=doc_type_s:book} acquisition_date_i:20180626 According to the documentati

Adding tag to fq makes query return child docs instead of parent docs

2018-06-26 Thread Florian Fankhauser
Hello, given the following document structure (books as parent, libraries having these books as children) in a Solr 7.3.1 server: book 1000 Mr. Mercedes Stephen King library 1000/100

Re: Matching parent docs when two child docs match different criteria

2018-02-06 Thread Mikhail Khludnev
ath__str":["p.1"]}]}] >} > ]} > > And I made a query similar to what you did: _query_:"{!parent > which=_level_:0}size:M" AND _query_:"{!parent which=_level_:0}size:M" > > This document would match. So I'm asking for a different scena

Re: Matching parent docs when two child docs match different criteria

2018-02-05 Thread SuperMattio86
ersion_":1591607734461005824, "_path__str":["p.1"]}]}] } ]} And I made a query similar to what you did: _query_:"{!parent which=_level_:0}size:M" AND _query_:"{!parent which=_level_:0}size:M" This document would match. So I'm aski

Re: Matching parent docs when two child docs match different criteria

2018-02-05 Thread Mikhail Khludnev
q=+{!parent .. v=$m} +{!parent .. v=$l}&m=size:(+M -L)&l=size:(+L -M) On Sun, Feb 4, 2018 at 10:56 PM, SuperMattio86 wrote: > Hello. > > As a toy example, let's assume I have documents that looks like this: > > { > "id": "1", > "_childDocuments_": [ > { > "id": "1_2", >

Matching parent docs when two child docs match different criteria

2018-02-04 Thread SuperMattio86
Hello. As a toy example, let's assume I have documents that looks like this: { "id": "1", "_childDocuments_": [ { "id": "1_2", "_path_": "p.1", "size": "M", "color": "red" }, { "id": "23lk4d23lkj", "_path_": "p.2", "si

Re: Search across nested child docs

2016-11-08 Thread Vinod Singh
context: http://lucene.472066.n3.nabble.com/Search-across-nested-child-docs-tp4304956p4305105.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Search across nested child docs

2016-11-08 Thread Mikhail Khludnev
Giving 'across two child docs', I think you are looking for fq={!parent which=PARENT_DOC_TYPE:PARENT}childA_field_1:432&fq={!parent which=PARENT_DOC_TYPE:PARENT}childA_field_2:6 On Mon, Nov 7, 2016 at 9:45 PM, Vinod Singh wrote: > I have nested documents indexed in SOLR 6.

Search across nested child docs

2016-11-07 Thread Vinod Singh
I have nested documents indexed in SOLR 6.2. The block join query works well on both parent and child documents. My use case has a scenario where a condition needs to be fulfilled across two child docs as shown below - fq={!parent which=PARENT_DOC_TYPE:PARENT}(childA_field_1:432 AND

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

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-24 Thread Mikhail Khludnev
t; 20 > parent > Nike > > 21 > Red > M > > > 22 > Blue > XL > XXL > > > > 30 > parent > Puma > > 31

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-24 Thread Mikhail Khludnev
31 Red XL 32 Blue M On Mon, Jun 22, 2015 at 2:04 PM, Maya G wrote: > 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, > Maya > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Sorting-documents-by-nested-child-docs-with-FunctionQueries-tp4209940p4213242.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com>

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-22 Thread Maya G
gestions? Thank you, Maya -- View this message in context: http://lucene.472066.n3.nabble.com/Sorting-documents-by-nested-child-docs-with-FunctionQueries-tp4209940p4213242.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-09 Thread Mikhail Khludnev
> >> * > >> * 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 > >> c

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-09 Thread DorZion
uot;id": "CommentGuid2", >> "content_type": "comment", >> "text": "CommentText" >> } >> ] >> } >> * >> * This is just an example, the schema and the data aren't real.* >> >>

Re: Sorting documents by nested / child docs with FunctionQueries

2015-06-05 Thread Mikhail Khludnev
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 chi

Sorting documents by nested / child docs with FunctionQueries

2015-06-05 Thread DorZion
thm 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