Nested documents (parent,child,grandchild), multi-select facets

2021-01-26 Thread Lance Snell
Hey all, I am having trouble finding current examples of multi-select faceting for nested documents. Specifically ones with *multiple *levels of nested documents. Any help/direction would be appreciated.Solr. 8.6 Hopefully my terminology is correct, I'm still new to solr. My current s

Re: Multi-select faceting for nested documents

2021-01-26 Thread Lance Snell
"parentCount": "unique(_root_)", }, "domain":{ "excludeTags":[ "TOP", "MID", // "LOW" ]

Re: Multi-select faceting for nested documents

2021-01-25 Thread Alexandre Rafalovitch
21 at 10:34, Lance Snell wrote: > > Any examples would be greatly appreciated. > > On Mon, Jan 25, 2021, 2:25 AM Lance Snell wrote: > > > Hey all, > > > > I am having trouble finding current examples of multi-select faceting for > > nested documents. Specif

Re: Multi-select faceting for nested documents

2021-01-25 Thread Lance Snell
Any examples would be greatly appreciated. On Mon, Jan 25, 2021, 2:25 AM Lance Snell wrote: > Hey all, > > I am having trouble finding current examples of multi-select faceting for > nested documents. Specifically ones with *multiple *levels of nested > documents. > > My

Multi-select faceting for nested documents

2021-01-25 Thread Lance Snell
Hey all, I am having trouble finding current examples of multi-select faceting for nested documents. Specifically ones with *multiple *levels of nested documents. My current schema has a parent document, two child documents(siblings), and a grandchild document. I am using the JSON API

Solr 8.6.2 Facets query for Nested documents

2020-10-13 Thread Abhay Kumar
Hello Team, I have sync following nested document in Solr 8.6.2. { "id":"NCT04372953", "title":"Positive End-Expiratory Pressure (PEEP) Levels During Resuscitation of Preterm Infants at Birth (The POLAR Trial) ", "phase":"N/A", "status":"Not yet recruiting", "studytype":"Intervent

Re: Index Deeply Nested documents and retrieve a full nested document in solr

2020-09-24 Thread Alexandre Rafalovitch
It is yes to both questions, but I am not sure if they play well together for historical reasons. For storing/parsing original JSON in any (custom) format: https://lucene.apache.org/solr/guide/8_6/transforming-and-indexing-custom-json.html (srcField parameter) For indexing nested children (with na

Index Deeply Nested documents and retrieve a full nested document in solr

2020-09-24 Thread Abhay Kumar
Hello Team, Can someone please help to index the below sample json document into Solr. I have following queries on indexing multi level child document. 1. Can we specify names to documents hierarchy such as "therapeuticareas" or "sites" while indexing. 2. How can we index document at mul

RE: Atomic updates with nested documents

2020-06-10 Thread Kaminski, Adi
10, 2020 11:10 AM To: solr-user@lucene.apache.org Subject: AW: Atomic updates with nested documents Hi Adi, thank you for your reply! Although I have to admit that this is not the response that I was hoping for 😊. Upgrading to Solr 8 is currently not possible for us because we found multiple

AW: Atomic updates with nested documents

2020-06-10 Thread Ludger Steens
: München Handelsregisternummer: HRB 163761 --- -Ursprüngliche Nachricht- Von: Kaminski, Adi Gesendet: Sonntag, 7. Juni 2020 08:45 An: solr-user@lucene.apache.org Betreff: RE: Atomic updates with nested documents Hi Ludger, We had the same issue with Solr 7.6, and after discussing with the

RE: Atomic updates with nested documents

2020-06-06 Thread Kaminski, Adi
the above mentioned changes. Regards, Adi -Original Message- From: Ludger Steens Sent: Friday, June 5, 2020 3:24 PM To: solr-user@lucene.apache.org Subject: Atomic updates with nested documents Dear Community, I am using Solr 7.7 and I am wondering how it is possible to do a partia

Atomic updates with nested documents

2020-06-05 Thread Ludger Steens
Dear Community, I am using Solr 7.7 and I am wondering how it is possible to do a partial update on nested documents / child documents. Suppose I have committed the following documents to the index: [ { "id": "1", "testString": "1",

Search on Nested Documents

2020-04-26 Thread Venu
Hi I have gone through https://lucene.apache.org/solr/guide/8_5/searching-nested-documents.html and examples suggest to search on a field either on parent or child based on parsers. Is there a way to search on the combined text of parent and child documents? Assume below is the document I am inde

Re: Inconsistent / confusing documentation on indexing nested documents.

2020-04-03 Thread Chris Hostetter
: Is the documentation wrong or have I misunderstood it? The documentation is definitely wrong, thanks for pointing this out... https://issues.apache.org/jira/browse/SOLR-14383 -Hoss http://www.lucidworks.com/

Inconsistent / confusing documentation on indexing nested documents.

2020-04-03 Thread Peter Pimley
Hi, The page "Indexing Nested Documents" has an XML example showing two different ways of adding nested documents: https://lucene.apache.org/solr/guide/8_5/indexing-nested-documents.html#xml-examples The text says: "It illustrates two styles of adding child documents: the firs

Denormalize Nested Documents

2020-03-02 Thread Ravi Dhanwate
Hello All, We are storing nested documents in Solr and when we query we would like to get denormalized (flattened ) view of nested object. For ex Stored Document : 1. { 2. course: "Java", 3. room: "10", 4. students: [ 5. { 6. id: 12, 7. name: "Jo

Re: Mix Index having child-free and nested documents

2020-02-27 Thread Naman Jain
here is query /solr/test/select?q={!parent%20which=doc_type:Parent%20score=max}%20%20{!boost%20b=100.0%20}color:Red%20{!dismax%20qf=title%20v=%27Regular%27%20score=total}&fl=id,product_class_type,title,score,color&wt=json

Mix Index having child-free and nested documents

2020-02-27 Thread Naman Jain
I have a solr core which has a mix of child-free and with-child documents, sample xml: 4 Regular Shirt Parent Black 8 Solid Rug Parent Solid 1 Regular color Shirts Parent 2 Child Red> 3 Child Blue> 5 Rugs Parent 6 Child Abstract 7 Child Printed Now i want to write a query whic

Solr Nested Documents not properly working

2020-01-29 Thread Yirmiyahu Fischer
Could you please answer my question on https://stackoverflow.com/questions/59566421/solr-nested-documents-not-properly-setup Thank you. Yirmiyahu Fischer Senior Developer Signature IT

Solr 8 Nested Documents Highlighting

2019-08-21 Thread Eichstädt , Konrad
Hi Everybody, we are using Apache Solr strongly with nested documents feature. But in version 8 we noticed that the highlighting which has been worked in Version 7 doesn't work properly in Version 8 . It works only for root parent element but not for childs? Is this an known open iss

Re: My problem with T-shirts and nested documents

2019-05-27 Thread Walter Underwood
>>> >> https://lucene.apache.org/solr/guide/6_6/transforming-result-documents.html#TransformingResultDocuments-_subquery_ >>> . >>> >>> >>> On Fri, May 24, 2019 at 3:16 PM Gian Marco Tagliani < >> gm.tagli...@gmail.com> >>>

Re: My problem with T-shirts and nested documents

2019-05-27 Thread Gian Marco Tagliani
t; > . > > > > > > On Fri, May 24, 2019 at 3:16 PM Gian Marco Tagliani < > gm.tagli...@gmail.com> > > wrote: > > > >> Hi all, > >> I'm facing a problem with Nested Documents. > >> > >> To illustrate my problem I'll use the

Re: My problem with T-shirts and nested documents

2019-05-24 Thread Walter Underwood
ransformingResultDocuments-_subquery_ > . > > > On Fri, May 24, 2019 at 3:16 PM Gian Marco Tagliani > wrote: > >> Hi all, >> I'm facing a problem with Nested Documents. >> >> To illustrate my problem I'll use the example with T-shirts in stock

Re: My problem with T-shirts and nested documents

2019-05-24 Thread Gian Marco Tagliani
> > wrote: > > > Hi all, > > I'm facing a problem with Nested Documents. > > > > To illustrate my problem I'll use the example with T-shirts in stock. > > For every model of a T-shirt, we can have different colors and sizes, for > > each combin

Re: My problem with T-shirts and nested documents

2019-05-24 Thread Bernd Fehling
How about "Pivot (Decision Tree) Faceting"? http://lucene.apache.org/solr/guide/6_6/faceting.html#Faceting-Pivot_DecisionTree_Faceting Regards Bernd Am 24.05.19 um 14:16 schrieb Gian Marco Tagliani: Hi all, I'm facing a problem with Nested Documents. To illustrate my probl

Re: My problem with T-shirts and nested documents

2019-05-24 Thread Mikhail Khludnev
.html#TransformingResultDocuments-_subquery_ . On Fri, May 24, 2019 at 3:16 PM Gian Marco Tagliani wrote: > Hi all, > I'm facing a problem with Nested Documents. > > To illustrate my problem I'll use the example with T-shirts in stock. > For every model of a T-shirt, we can have d

My problem with T-shirts and nested documents

2019-05-24 Thread Gian Marco Tagliani
Hi all, I'm facing a problem with Nested Documents. To illustrate my problem I'll use the example with T-shirts in stock. For every model of a T-shirt, we can have different colors and sizes, for each combination we have the number of items in stock. In Solr, for every model we have

Weird behaviour of Solr nested documents.

2019-04-25 Thread Saloni Udani
d multiple values for _root_ which contradicts "*To support nested documents, the schema must include an indexed/non-stored field _root_. The value of that field is populated automatically and is the same for all documents in the block, regardless of the inheritance depth*." Thanks Saloni Udani

Re: nested documents performance

2019-04-15 Thread Emir Arnautović
; documents only now we've nested them as 1000 parented with 1000 child > documents each, it took only 27 seconds. > > we know that Lucene don't support nested documents for it has a flat object > model, and we do see that in fact it does index each of the child documents &g

nested documents performance

2019-04-14 Thread Roi Wexler
've nested them as 1000 parented with 1000 child documents each, it took only 27 seconds. we know that Lucene don't support nested documents for it has a flat object model, and we do see that in fact it does index each of the child documents as a separate document. we have tests shows

Re: Query over nested documents with an AND Operator

2019-02-01 Thread Scott Stults
Hi Julia, Keep in mind that in order to facet on child document fields you'll need to use the block join facet component: https://lucene.apache.org/solr/guide/7_4/blockjoin-faceting.html For the query itself you probably need to specify each required attribute value, but looks like you're already

Re: Query over nested documents with an AND Operator

2019-02-01 Thread Mikhail Khludnev
Whats' your current query? It's probably a question of building boolean query by combining Solr queries. Note, this datamodel might be a little bit overwhelming, So, if number of distinct attributename values is around a thousand, just handle it via dynamic field without nesting docs: brass

Query over nested documents with an AND Operator

2019-02-01 Thread Gelszus Julia
Hello, recently I started to work with Apache SOLR 7.6.0 in the course of a project. I encountered the following problem during the queries, where I want to know if the SOLR offers this in general: We want to index a nested XML document, which can have the following structure: - there are 1-n Par

RE: Nested Documents without using "type" field ? Possible or Not ?

2018-12-06 Thread Bruno Mannina
-user@lucene.apache.org Objet : Nested Documents without using "type" field ? Possible or Not ? Hello, I would like to use SOLR to index the Cooperative Patent Classification, The CPC has a hierarchical structure and it can have more than 20 level. It's a basic structure without Type of n

Nested Documents without using "type" field ? Possible or Not ?

2018-12-05 Thread Bruno Mannina
Hello, I would like to use SOLR to index the Cooperative Patent Classification, The CPC has a hierarchical structure and it can have more than 20 level. It's a basic structure without Type of nested doc. i.e: A -> A01 -> A01B -> A01B3/00 -> A01B3/40 -> A01B3/4025 . A -> A01 -> A01L -> A01L1

Solr nested documents : Query for child documents filtered by a parent field

2018-12-02 Thread Ashika Umanga Umagiliya
I have following parent-child models parent: public class DataSet { @Field private String id; @Field private String type="type_dataset"; @Field private String name; @Field private String dataSourceId; @Field private String serviceId; @Fie

Solr5.4: Trouble to use Xml Nested Documents

2018-11-29 Thread Bruno Mannina
Dear Solr Users, I would like to use solr to do searches on a hierarchical structure (for knowers CPC and IPC). Constraint: I use SOLR5.4 and I can't upgrade it. I succeed to import my xml source file (see at the end of this post for the xml file) I succeed to search into. But I always g

Re: How to retrieve nested documents (parents and their children together) ?

2018-07-25 Thread TK Solr
Ah, that's what _root_ is for ! I was wondering. Thank you! On 7/25/18 2:36 PM, Mikhail Khludnev wrote: _root_:parent-id чт, 26 июля 2018, 1:33 TK Solr : The child doc transformer worked great. Thank you. In my experiment, posting 'parent-id' to the update end point only deleted the parent

Re: How to retrieve nested documents (parents and their children together) ?

2018-07-25 Thread Mikhail Khludnev
_root_:parent-id чт, 26 июля 2018, 1:33 TK Solr : > The child doc transformer worked great. Thank you. > > In my experiment, posting 'parent-id' to the > update > end point only deleted the parent doc. Do I insert a complex join query > from id > to _version_ and delete all the docs of the matchi

Re: How to retrieve nested documents (parents and their children together) ?

2018-07-25 Thread TK Solr
The child doc transformer worked great. Thank you. In my experiment, posting 'parent-id' to the update end point only deleted the parent doc. Do I insert a complex join query from id to _version_ and delete all the docs of the matching _version_ ? On 7/24/18 9:27 PM, TK Solr wrote: Thank yo

Re: How to retrieve nested documents (parents and their children together) ?

2018-07-24 Thread TK Solr
Thank you. I'll try the child doc transformer. On a related question, if I delete a parent document, will its children be deleted also? Or do I have to have a parent_id field in each child so that the child docs can be deleted? On 7/22/18 10:05 AM, Mikhail Khludnev wrote: Hello, Check [chil

Re: How to retrieve nested documents (parents and their children together) ?

2018-07-22 Thread Mikhail Khludnev
Hello, Check [child] https://lucene.apache.org/solr/guide/7_4/transforming-result-documents.html#child-childdoctransformerfactory or [subquery]. Although, it's worth to put reference to it somewhere in blockjoin qparsers. Documentation patches are welcome. On Sun, Jul 22, 2018 at 10:25 AM TK Solr

How to retrieve nested documents (parents and their children together) ?

2018-07-22 Thread TK Solr
https://lucene.apache.org/solr/guide/7_4/other-parsers.html#block-join-parent-query-parser talks about {!parent which=} docs>, which returns parent docs only, and {!child of=} , which returns child docs only. Is there a way to retrieve the matched documents in the original, nested form? Using

Re: Sum and aggregation on nested documents field

2018-07-11 Thread jeebix
My apologize Mikhail, I try to explain it better : This is actually what I get from SOLR with the query you helped me to build : "responseHeader":{ "status":0, "QTime":15, "params":{ "q":"{!parent which=object_type_s:contact score=max v=$chq}", "indent":"on", "fl":"*

Re: Sum and aggregation on nested documents field

2018-07-11 Thread Mikhail Khludnev
"to facet the results or to be able to filter on the score returned" This is not clear, you need to clarify it to be replied. On Wed, Jul 11, 2018 at 2:48 AM jeebix wrote: > Hello Mikhail, > > First thanks a lot for your answers which are very useful for me... Then, I > tried the query with t

Re: Sum and aggregation on nested documents field

2018-07-10 Thread jeebix
Hello Mikhail, First thanks a lot for your answers which are very useful for me... Then, I tried the query with the '$' parameter, and I get some great result like this : "id":"693897", "asso_i":693897, "etat_technique_s":"avec_documents", "etat_marketing_s":"actif",

Sum and aggregation on nested documents field

2018-07-10 Thread jeebix
Hello everybody, I have a question about how to retrieve results from SOLR with some aggregation (like sum in my case...) on the nested documents. First, the data SOLR returned with a standard query : { "id":"3911.3912.1278", "parent_i&quo

Re: Sum and aggregation on nested documents field

2018-07-10 Thread Mikhail Khludnev
Hello, JB. The rule of thumb if that you post what's you have whether it exception or unexpected result with explain. Here I guess you need something like: q={!parent which=object_type_s:contact score=total v=$chq}&chq=+ object_type:order {!func}TTC_i Make sure that + isn't mangled by url ecoding i

Re: Sum and aggregation on nested documents field

2018-07-10 Thread jeebix
Thanks for your reply Mikhail, I tried like this : "{!parent which=object_type_s:contact score=total v={!func}TTC_i}" in a filter query, the same in the sort parameter, I also tried to put this query "{!parent which=object_type_s:contact score=total}TTC_i" into the q parameter, but no results... I

Re: Sum and aggregation on nested documents field

2018-07-10 Thread jeebix
Thanks for your reply Mikhail, I tried like this : "{!parent which=object_type_s:contact score=total v={!func}TTC_i}" in a filter query, the same in the sort parameter, I also tried to put this query "{!parent which=object_type_s:contact score=total}TTC_i" into the q parameter, but no results... I

Re: Sum and aggregation on nested documents field

2018-07-09 Thread Mikhail Khludnev
If you have TTC_i as a function query on child level, and apply score=total on the parent query. On Mon, Jul 9, 2018 at 10:11 AM jeebix wrote: > Hello everybody, > > First, an example of a parent document with 2 nested documents : > > { > "id":"10891.1

Sum and aggregation on nested documents field

2018-07-09 Thread jeebix
Hello everybody, First, an example of a parent document with 2 nested documents : { "id":"10891.10893.142693", "parent_i":10891, "asso_i":10893, "personne_i":142693, "etat_technique_s":"avec

Re: Nested documents vs. flattening document structure?

2018-03-06 Thread Dc Tech
Thank you Erick. That was my instinct as well. On Tue, Mar 6, 2018 at 10:05 AM, Erick Erickson wrote: > Flattening the nested documents is usually preferred if at all > possible. Nested documents to, indeed, have a series of restrictions > that often make them harder to work

Re: Nested documents vs. flattening document structure?

2018-03-06 Thread Erick Erickson
Flattening the nested documents is usually preferred if at all possible. Nested documents to, indeed, have a series of restrictions that often make them harder to work with than flattened docs. Best, Erick On Tue, Mar 6, 2018 at 6:48 AM, Dc Tech wrote: > We are evaluating using nested docume

Nested documents vs. flattening document structure?

2018-03-06 Thread Dc Tech
We are evaluating using nested documents vs. simply flattening the document. Looking through the documentation, it is not very clear to me if the nested documents are fully mature, and support the full richness of SOLR (streaming, mature faceting) etc... Any opinions or guidance on that? For

AW: Sort by nested field but only in matching nested documents

2018-02-22 Thread Florian Fankhauser
Thanks for your answer, Mikhail. Florian -Ursprüngliche Nachricht- Von: Mikhail Khludnev [mailto:m...@apache.org] Gesendet: Dienstag, 6. Februar 2018 11:44 An: solr-user Betreff: Re: Sort by nested field but only in matching nested documents Hello Florian, No. As an alternative you

Re: Sort by nested field but only in matching nested documents

2018-02-06 Thread Mikhail Khludnev
Hello Florian, No. As an alternative you can put it into q param, suppressing scoring from undesired clauses with ^=0 On Thu, Feb 1, 2018 at 5:22 PM, Florian Fankhauser wrote: > Hello, > given the following document structure (books as parent, libraries having > these books as children): > > >

Sort by nested field but only in matching nested documents

2018-02-01 Thread Florian Fankhauser
Hello, given the following document structure (books as parent, libraries having these books as children): book 1000 Mr. Mercedes Stephen King library 1000/100 20160810

Nested documents using solr 6.2.1

2017-05-30 Thread aniljayanti
hi , i am trying to work on nested documents in solr 6.2.1. I am trying to generate employee info from database. parent node consists of empid,cid,sid,pid. child node consists of price,empid,cid,sid,pid.[multiple prices will be exists, remaining values are same as parent] data-config.xml

Re: eDisMax with nested documents

2017-05-29 Thread Rick Leir
2017-05-29 03:43 AM, Moritz Michael wrote: Hello, I'm new to this list and having a question regarding nested documents with scoring through eDisMax. We do have an index of e-books that contains the metadata of the e-book and each page as a single document: - Book 1 - Page 1

eDisMax with nested documents

2017-05-29 Thread Moritz Michael
Hello, I'm new to this list and having a question regarding nested documents with scoring through eDisMax. We do have an index of e-books that contains the metadata of the e-book and each page as a single document: - Book 1 - Page 1 - Page 2 - P

Re: How to handle nested documents in solr (SolrJ)

2017-05-25 Thread Rick Leir
oogle search for: nested documents site:mail-archives.apache.org/mod_mbox/lucene-solr-user/ https://www.google.ca/search?safe=strict&q=nested+documents+site%3Amail-archives.apache.org%2Fmod_mbox%2Flucene-solr-user%2F&oq=nested+documents+site%3Amail-archives.apache.org%2Fmod_mbox%2Fluc

Re: How to handle nested documents in solr (SolrJ)

2017-05-24 Thread David Lee
ay be the same but things are changing quickly these days (not a bad thing). Thanks, David On 5/24/2017 4:26 AM, Rick Leir wrote: Prasad, Gee, you get confusion from a google search for: nested documents site:mail-archives.apache.org/mod_mbox/lucene-solr-user/ https://www.google.ca/s

Re: How to handle nested documents in solr (SolrJ)

2017-05-24 Thread Erick Erickson
I would ask if you need nested documents at all. If you can denormlize the docs it's often much easier. In your case I can think of several options: 1> just index a separate field for each subject. Solr handles a couple of hundred fields with ease. student id : 123 student name : john m

Re: How to handle nested documents in solr (SolrJ)

2017-05-24 Thread Rick Leir
Prasad, Gee, you get confusion from a google search for: nested documents site:mail-archives.apache.org/mod_mbox/lucene-solr-user/ https://www.google.ca/search?safe=strict&q=nested+documents+site%3Amail-archives.apache.org%2Fmod_mbox%2Flucene-solr-user%2F&oq=nested+documents+sit

How to handle nested documents in solr (SolrJ)

2017-05-23 Thread prasad chowdary
Results option . But not able to get the child for parent match. Please help me out in this regard.Thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-handle-nested-documents-in-solr-SolrJ-tp4336861.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Joining across collections with Nested documents

2017-03-03 Thread Walter Underwood
cases > where we would need data from both. > > > Thanks and Regards, > Preeti Bhat > > -Original Message- > From: Walter Underwood [mailto:wun...@wunderwood.org] > Sent: Friday, March 03, 2017 12:02 PM > To: solr-user@lucene.apache.org > Subject: Re: J

RE: Joining across collections with Nested documents

2017-03-03 Thread Preeti Bhat
Thanks Mikhail, I will look into this option. Thanks and Regards, Preeti Bhat -Original Message- From: Mikhail Khludnev [mailto:m...@apache.org] Sent: Friday, March 03, 2017 1:03 PM To: solr-user Subject: Re: Joining across collections with Nested documents Related docs can be

RE: Joining across collections with Nested documents

2017-03-03 Thread Preeti Bhat
e.org Subject: Re: Joining across collections with Nested documents Make one collection with denormalized data. This looks like a relational, multi-table schema in Solr. That will be slow and painful. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) >

Re: Joining across collections with Nested documents

2017-03-02 Thread Mikhail Khludnev
Related docs can be retrieved with https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents#TransformingResultDocuments-[subquery] but searching related docs is less ready. Here is a patch for query time join across collections https://issues.apache.org/jira/browse/SOLR-8297.

Re: Joining across collections with Nested documents

2017-03-02 Thread Walter Underwood
Make one collection with denormalized data. This looks like a relational, multi-table schema in Solr. That will be slow and painful. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Mar 2, 2017, at 9:55 PM, Preeti Bhat wrote: > > Hi All, > > I hav

Joining across collections with Nested documents

2017-03-02 Thread Preeti Bhat
Hi All, I have two collections in solrcloud namely contact and company, they are in same solr instance. Company is relatively simpler document with id, Name, address etc... Coming over to Contact, this has the nested document like below. I would like to get the Company details using the "Compan

Re: Solr querying nested documents with ChildDocTransformerFactory, get “Parent query yields document which is not matched by parents filter”

2017-02-06 Thread David Kramer
> · We are trying to retrieve the parent Product, and all > children > > documents. As such, we are using the ChildDocTransformerFactory > > ([child...]) to retrieve the children along with the parent. We have > not >

Re: Solr querying nested documents with ChildDocTransformerFactory, get “Parent query yields document which is not matched by parents filter”

2017-02-02 Thread David Kramer
he first letter of the > > docType, like P12345. That makes the uuid field unique, and we have > that as > > the uniqueKey in our schema.xml. > > · We are trying to retrieve the parent Product, and all > children > &g

Re: Solr querying nested documents with ChildDocTransformerFactory, get “Parent query yields document which is not matched by parents filter”

2017-02-02 Thread Mikhail Khludnev
> > docType, like P12345. That makes the uuid field unique, and we have > that as > > the uniqueKey in our schema.xml. > > · We are trying to retrieve the parent Product, and all > children > > documents. As such, we are using the ChildDocTransf

Re: Solr querying nested documents with ChildDocTransformerFactory, get “Parent query yields document which is not matched by parents filter”

2017-02-02 Thread David Kramer
retrieve the children along with the parent. We have not > yet solved the problem of getting items within SKUs as nested documents in > the results, and we will have to figure that out at some point, but for now > we get them flattened > · We are building out

Re: Solr querying nested documents with ChildDocTransformerFactory, get “Parent query yields document which is not matched by parents filter”

2017-02-02 Thread Mikhail Khludnev
documents. As such, we are using the ChildDocTransformerFactory > ([child...]) to retrieve the children along with the parent. We have not > yet solved the problem of getting items within SKUs as nested documents in > the results, and we will have to figure that out at some point, but for now >

Solr querying nested documents with ChildDocTransformerFactory, get “Parent query yields document which is not matched by parents filter”

2017-02-01 Thread David Kramer
ct, and all children documents. As such, we are using the ChildDocTransformerFactory ([child...]) to retrieve the children along with the parent. We have not yet solved the problem of getting items within SKUs as nested documents in the results, and we will have to figure that out at some point

RE: Indexing nested documents giving back unrelated parents when asking for children

2017-01-26 Thread Fabien Renaud
@lucene.apache.org Subject: RE: Indexing nested documents giving back unrelated parents when asking for children But the problem is already there with only two levels. If I change the code to add document to Solr by the following: client1.add(doc1); client1.commit

Block-join, JSON faceting and dismax parser on nested documents

2017-01-25 Thread Hyungoo Kang
Dear Solr gurus, I'm having hard time using block-join queries on nested documents with multi-select facets. We currently index products with variations as nested-documents as the following: Product-1: t-shirt => brand:Nike doc_type:0 ... - SKU-A => size:S color:blue doc_type:1

RE: Indexing nested documents giving back unrelated parents when asking for children

2017-01-24 Thread Fabien Renaud
(as well as the correct parent-child relation between 1,2 and 4;5): "docs": [ { "id": "2" }, { "id": "5" } ] Fabien -Original Message- From: Mikhail Khludnev [mailto:gge...@gmail.com] Sent: den 24 januari 2017 19:02 To:

RE: Indexing nested documents giving back unrelated parents when asking for children

2017-01-24 Thread Mikhail Khludnev
me of them do not make any sense at all. And the problem appears for an intermediate node (which has children and which itself a child of another). Fabien -Original Message- From: Mikhail Khludnev [mailto:m...@apache.org] Sent: den 24 januari 2017 14:06 To: solr-user Subject: Re: Indexi

RE: Indexing nested documents giving back unrelated parents when asking for children

2017-01-24 Thread Fabien Renaud
hem do not make any sense at all. And the problem appears for an intermediate node (which has children and which itself a child of another). Fabien -Original Message- From: Mikhail Khludnev [mailto:m...@apache.org] Sent: den 24 januari 2017 14:06 To: solr-user Subject: Re: Index

Re: Indexing nested documents giving back unrelated parents when asking for children

2017-01-24 Thread Mikhail Khludnev
Hello Fabien, I believe parentFilter should be type_s:up, and consequently the type_s:up should go in fq. On Tue, Jan 24, 2017 at 3:30 PM, Fabien Renaud wrote: > Hello, > > I'm wondering if I missed something in my code (which uses solrj 6.3): > > public class Main { > > private SolrClient

Indexing nested documents giving back unrelated parents when asking for children

2017-01-24 Thread Fabien Renaud
Hello, I'm wondering if I missed something in my code (which uses solrj 6.3): public class Main { private SolrClient client1; public void run() { client1 = new HttpSolrClient.Builder("http://localhost:8983/solr";).build(); SolrInputDocument doc1 = new SolrInputDocument

Re: Boolean disjunction with nested documents

2017-01-20 Thread Mikhail Khludnev
It could be more clear if you post debugQuery=true response. Anyway, you've find a solution, it's great. There is no a performance pitfall in nested queries (_query_). On Fri, Jan 20, 2017 at 5:24 PM, Ivan Bianchi wrote: > Hi Mikhail, > > thanks for the answer, although both of queries still are

Re: Boolean disjunction with nested documents

2017-01-20 Thread Ivan Bianchi
Hi Mikhail, thanks for the answer, although both of queries still are giving me the same "*child query must only match non-parent docs*" IllegalState error, as I understand it is still seeing the second clause (has_schedules:false) as part of the child filter. Even using the v parameter inside th

Re: Boolean disjunction with nested documents

2017-01-19 Thread Mikhail Khludnev
It's my pet peeve. Try ?q={!parent which=content_type:activity}(schedule.weekday:1) OR has_schedules:false&debugQuery=true vs ?q= {!parent which=content_type:activity}(schedule.weekday:1) OR has_schedules:false&debugQuery=true and you'll see how space matters. The pro's way is to ?q={!parent which

Boolean disjunction with nested documents

2017-01-19 Thread Ivan Bianchi
I hope someone can help me because I have spent too many time looking for this issue :( I have 2 kind of documents related with an 1-n relation, in my example this is 1 activity has many schedules. To achieve this I have some inner child document with schedule fields inside the activity document.

Re: reindexing a solr collection of nested documents

2016-11-29 Thread adfel70
Anyone has a clue? -- View this message in context: http://lucene.472066.n3.nabble.com/reindexing-a-solr-collection-of-nested-documents-tp4307586p4307976.html Sent from the Solr - User mailing list archive at Nabble.com.

reindexing a solr collection of nested documents

2016-11-27 Thread adfel70
Hi I have a solr collection of nested documents. I would like to reindex this collection to a new collection ,without running the original process that created this collection. If this was not a a collection of nested documents, I would use the /export handler to export all the documents and

RE: Combined Dismax and Block Join Scoring on nested documents

2016-11-23 Thread Mike Allen
instance I need to know for sure it's scoring on only matched variants, not all children of a parent - which would completely blow the whole thing out of the water. And as I said, I'm pretty sure I've yet to figure out applying a query filter to parent docs. When I'm a

Re: Combined Dismax and Block Join Scoring on nested documents

2016-11-21 Thread Alexandre Rafalovitch
d be more than happy to. What goes around comes around! > > -Original Message- > From: Alexandre Rafalovitch [mailto:arafa...@gmail.com] > Sent: 21 November 2016 13:01 > To: solr-user > Subject: Re: Combined Dismax and Block Join Scoring on nested documents > > A blog a

RE: Combined Dismax and Block Join Scoring on nested documents

2016-11-21 Thread Mike Allen
ovitch [mailto:arafa...@gmail.com] Sent: 21 November 2016 13:01 To: solr-user Subject: Re: Combined Dismax and Block Join Scoring on nested documents A blog article about what you learned would be very welcome. These edge cases are something other people could certainly learn from. Share the knowledge f

Re: Combined Dismax and Block Join Scoring on nested documents

2016-11-21 Thread Alexandre Rafalovitch
> -Original Message- > From: Mikhail Khludnev [mailto:m...@apache.org] > Sent: 18 November 2016 12:58 > To: solr-user > Subject: Re: Combined Dismax and Block Join Scoring on nested documents > > Hello Mike, > Structured queries in Solr are way cumbersome. > Start from: &g

RE: Combined Dismax and Block Join Scoring on nested documents

2016-11-21 Thread Mike Allen
ember 2016 12:58 To: solr-user Subject: Re: Combined Dismax and Block Join Scoring on nested documents Hello Mike, Structured queries in Solr are way cumbersome. Start from: q=+{!dismax v="skirt" qf="name"} +{!parent which=content_type:product score=min v=childq}&childq=+i

Re: Combined Dismax and Block Join Scoring on nested documents

2016-11-18 Thread Mikhail Khludnev
Hello Mike, Structured queries in Solr are way cumbersome. Start from: q=+{!dismax v="skirt" qf="name"} +{!parent which=content_type:product score=min v=childq}&childq=+in_stock:true^=0 {!func}list_price_gbp&... beside of "explain" there is a parsed query entry in debug that's more useful for trou

Combined Dismax and Block Join Scoring on nested documents

2016-11-18 Thread Mike Allen
Apologies if I'm doing something incredibly stupid as I'm new to Solr. I am having an issue with scoring child documents in a block join query when including a dismax query. I'm actually a little unclear on whether or not that's a complete oxymoron, combining dismax and block join. Problem stat

Re: Nested documents: deleting the whole subtree

2016-09-04 Thread Alexandre Rafalovitch
I can get this to: "q":"(+${parent_match} +${condition_match}) {!child of=${parent_match}}${condition_match}", "parent_match":"type:release", "condition_match":"release_name:\"6.1.0\"", But I am not sure that's "smarter". Regards, Alex. Newsletter and resources for Solr beginners and

Re: Nested documents: deleting the whole subtree

2016-09-03 Thread Alexandre Rafalovitch
Right. But how do I structure the query to say to match all root values that correspond to the parent entries selected by query. Maybe I am just blanking here but how do I form the query: q=_root_:[set of id values from query (+type:release +release_name:"6.1.0")] Regards, Alex. Newslet

  1   2   >