Re: Block join query parser

2018-06-06 Thread Mikhail Khludnev
[child] has childFilter param. Also, mind about [subquery] On Wed, Jun 6, 2018 at 9:33 AM, Ryan Yacyshyn wrote: > Hi all, > > I'm looking for a way to query nested documents that would return the > parent documents along with its child documents nested under it, but only > the child documents th

Block join query parser

2018-06-05 Thread Ryan Yacyshyn
Hi all, I'm looking for a way to query nested documents that would return the parent documents along with its child documents nested under it, but only the child documents that match the query. The [child] doc transformer comes close, but it returns all child docs. I'm looking for something simil

Re: Doubts regarding usage of block join query

2018-02-04 Thread Aashish Agarwal
oblem? > > On Jan 18, 2018 1:31 AM, "Mikhail Khludnev" wrote: > > > sure > > > > On Wed, Jan 17, 2018 at 9:39 PM, Aashish Agarwal > > wrote: > > > > > Hello, > > > I tried to use block join query feature in solr 4.6.0. My da

Re: Doubts regarding usage of block join query

2018-01-18 Thread Mikhail Khludnev
any way to solve the above problem? > > On Jan 18, 2018 1:31 AM, "Mikhail Khludnev" wrote: > > > sure > > > > On Wed, Jan 17, 2018 at 9:39 PM, Aashish Agarwal > > wrote: > > > > > Hello, > > > I tried to use block join query feat

Re: Doubts regarding usage of block join query

2018-01-17 Thread Aashish Agarwal
So is there any way to solve the above problem? On Jan 18, 2018 1:31 AM, "Mikhail Khludnev" wrote: > sure > > On Wed, Jan 17, 2018 at 9:39 PM, Aashish Agarwal > wrote: > > > Hello, > > I tried to use block join query feature in solr 4.6.0. My data is i

Re: Doubts regarding usage of block join query

2018-01-17 Thread Mikhail Khludnev
sure On Wed, Jan 17, 2018 at 9:39 PM, Aashish Agarwal wrote: > Hello, > I tried to use block join query feature in solr 4.6.0. My data is in > database but since 4.6 does not support DIH with child=true, so I created > the csv in order list of child followed by parent. > I

Block join query with solr 4.6.0

2018-01-16 Thread Aashish Agarwal
Hi, I am using block join query to get parent object using filter on child. But when the number of results are large than the query fails with ArrayIndexOutOfBoundException. e.g in range query price:[0 TO 20] fails but price[0 TO 10], price:[10 TO 20] works fine. I am using solr 4.6.0. Thanks

Boost(bq) with Block Join Query Praser

2017-06-28 Thread Ratna
Hi all, We are having Nested Documents. We want similar kind of function like 'bq'(Edismax) with Block Join Query parser. Can you please provide some inputs to achieve boost within result set based on some attribute in Solr. -- View this message in context: http://lucene

Nested Document (aka Block Join) Query with Multiple Criteria

2017-02-22 Thread Chris Bell
I am trying to perform a Nested Document query containing multiple criteria, which can be treated as an AND in regards to the parent document. With the structure: ParentDocument: { id:1 ChildDocument: { id:1.1 field1:value1, field2:value2 }, ChildDocument:

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-05 Thread Zheng Lin Edwin Yeo
Thanks for the information. Will try them out. Regards, Edwin On 5 October 2016 at 02:58, Mikhail Khludnev wrote: > Edwin, > It seems like you try to pull document hierarchy back. That's usually done > by searching parents and fl=[child ..],,. > > On Tue, Oct 4, 2016 at 5:22 PM, Zheng Lin Edwin

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Mikhail Khludnev
Edwin, It seems like you try to pull document hierarchy back. That's usually done by searching parents and fl=[child ..],,. On Tue, Oct 4, 2016 at 5:22 PM, Zheng Lin Edwin Yeo wrote: > Some of the sample documents are like the following: > > Author is the Header, while Books are the Child > > Au

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Alexandre Rafalovitch
I _think_ what is happening is that you are going in both parent and child directions in your filters. Try making your query ('q') define your original domain (q=type_s:author) and then 'books' goes inside the parent "author" scope and that's where you change your domain. Regards, Alex.

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Zheng Lin Edwin Yeo
Some of the sample documents are like the following: Author is the Header, while Books are the Child Author: Edwin Books: Book 1 Book 2 Book 3 Author: John Books: Book 4 Book 5 For this query: http://localhost:8983/solr/collection1/select?q=*:* &json.facet={

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Yonik Seeley
Perhaps show a couple sample documents, and then what data you're looking for in a response? This stuff can be tough to pin down without concrete examples. -Yonik On Tue, Oct 4, 2016 at 5:22 AM, Zheng Lin Edwin Yeo wrote: > I have tried to use this nested query, but I still can't get results fo

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Zheng Lin Edwin Yeo
I have tried to use this nested query, but I still can't get results for the list of books. http://localhost:8983/solr/collection1/select?q=*:* &json.facet={ items:{ type:terms, field:author_s, domain: { blockParent : "type_s:author" }, facet:{ by1:{ type:terms, field:book_s, doma

Re: Faceting on both Parent and Child records in Block Join Query Parser

2016-10-04 Thread Alexandre Rafalovitch
You need to switch the domain to the child records. It is somewhere in the guide or Yonik's blog linked. Regards, Alex On 4 Oct 2016 1:55 PM, "Zheng Lin Edwin Yeo" wrote: > Hi, > > Is it possible to do nested faceting on both records in parent and child in > a single query? > > For example,

Faceting on both Parent and Child records in Block Join Query Parser

2016-10-03 Thread Zheng Lin Edwin Yeo
Hi, Is it possible to do nested faceting on both records in parent and child in a single query? For example, I want to facet both author_s and book_s. Author is indexed as a parent, whereas Book is indexed as a child. I tried the following JSON Facet query, which is to do a facet of all the list

Re: Block Join query

2015-12-14 Thread Novin Novin
highlighting nor scoring. > > On Mon, Dec 14, 2015 at 2:45 PM, Novin Novin wrote: > > > Hi Mikhail, > > > > I'm having a little bit problem to construct the query for solr when I > have > > been trying to use block join query. As you said, i can't

Re: Block Join query

2015-12-14 Thread Mikhail Khludnev
Mikhail, > > I'm having a little bit problem to construct the query for solr when I have > been trying to use block join query. As you said, i can't use + or > in front of block join query, so I have to put *{**!parent > which="doctype:200"} *in front. and after

Re: Block Join query

2015-12-14 Thread Novin Novin
Hi Mikhail, I'm having a little bit problem to construct the query for solr when I have been trying to use block join query. As you said, i can't use + or in front of block join query, so I have to put *{**!parent which="doctype:200"} *in front. and after this, all fields ar

Re: Block Join query

2015-12-11 Thread Novin
h "Nested Queries" or so, check the post <http://blog.griddynamics.com/2013/12/grandchildren-and-siblings-with-block.html> On Fri, Dec 11, 2015 at 6:31 PM, Novin wrote: Hi Guys, I'm trying block join query, so I have tried +{!parent which="doctype:200"}flow

Re: Block Join query

2015-12-11 Thread Mikhail Khludnev
th-block.html> On Fri, Dec 11, 2015 at 6:31 PM, Novin wrote: > Hi Guys, > > I'm trying block join query, so I have tried +{!parent > which="doctype:200"}flow:624 worked fine. But when i tried +{!parent > which="doctype:200"}flow:[624 TO 700] >

Block Join query

2015-12-11 Thread Novin
Hi Guys, I'm trying block join query, so I have tried +{!parent which="doctype:200"}flow:624 worked fine. But when i tried +{!parent which="doctype:200"}flow:[624 TO 700] Got the below error org.apache.solr.search.SyntaxError: Cannot parse 'flow_l:[624

Re: Block Join Query update documents, how to do it correctly?

2015-05-20 Thread Mikhail Khludnev
On Thu, May 14, 2015 at 12:01 AM, Tom Devel wrote: > I tried to repost the whole modified document (the parent and ALL of its > children as one file), and it seems to work on a small toy example, but of > course I cannot be sure for a larger instance with thousands of documents, > and I would lik

Block Join Query update documents, how to do it correctly?

2015-05-13 Thread Tom Devel
I am using the Block Join Query Parser with success, following the example on: https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-BlockJoinQueryParsers As this example shows, each parent document can have a number of documents embedded, and each document, be it a parent

Re: Block Join Query Parsers regular expression feature workaround req

2015-02-17 Thread Mikhail Khludnev
wrote: > > > > > Hi > > > > > > I need to have a query in which I need to choose only those parent docs > > > none of whose children's field is having the specified value. > > > i.e. I need something like this: > > > http://localhost:8

Re: Block Join Query Parsers regular expression feature workaround req

2015-02-17 Thread Kydryavtsev Andrey
docs >>>  none of whose children's field is having the specified value. >>>  i.e. I need something like this: >>>  http://localhost:8983/solr/core1/select?*q={!parent >>>  which=contentType:parent}childField:NOT value1* >>> >>>  The problem is*

Re: Block Join Query Parsers regular expression feature workaround req

2015-02-17 Thread Sankalp Gupta
need something like this: > > http://localhost:8983/solr/core1/select?*q={!parent > > which=contentType:parent}childField:NOT value1* > > > > The problem is* NOT operator is not being supported* in the Block Join > > Query Parsers. Could anyone please suggest a way to wor

Re: Block Join Query Parsers regular expression feature workaround req

2015-02-17 Thread Mikhail Khludnev
dField:NOT value1* > > The problem is* NOT operator is not being supported* in the Block Join > Query Parsers. Could anyone please suggest a way to workaround this > problem? > Have also added the problem on *stackoverflow*: > > http://stackoverflow.com/questions/28562355/in-

Block Join Query Parsers regular expression feature workaround req

2015-02-17 Thread Sankalp Gupta
* NOT operator is not being supported* in the Block Join Query Parsers. Could anyone please suggest a way to workaround this problem? Have also added the problem on *stackoverflow*: http://stackoverflow.com/questions/28562355/in-solr-does-block-join-query-parsers-lack-regular-expression-feature Regards Sa

Re: Solr Block Join Query matching Parent documents that have multiple children

2014-12-20 Thread Mikhail Khludnev
On Sat, Dec 20, 2014 at 1:32 AM, Jamie Johnson wrote: > > I have the following documents indexed > > > 0 > 1 > > > > physicalcharacteristics > Black > Green > > > physicalcharacteristics > Red > Brown > > > person > 1 > > > physicalcharacteristics > Pink > Purple > > > physicalcharact

Solr Block Join Query matching Parent documents that have multiple children

2014-12-19 Thread Jamie Johnson
I have the following documents indexed 0 1 physicalcharacteristics Black Green physicalcharacteristics Red Brown person 1 physicalcharacteristics Pink Purple physicalcharacteristics Brown Blue person 2 I am able to get back all people that have child documents with brown hair and

Block join query

2013-11-07 Thread danost
documents How do I query on the grandchild level though? If I set the same type_s field for each level and try to do something like {!parent which='type_s:child' v='grandchildfield:value1'} it will return the correct child document, how do I relate that back to the parent?

Nested documents/Block Join query

2013-11-05 Thread danosth
field for each level and try to do something like {!parent which='type_s:child' v='grandchildfield:value1'} it will return the correct child document, how do I relate that back to the parent though? -- View this message in context: http://lucene.472066.n3.nabble.com/Nested-documents-Block-Join-query-tp4099439.html Sent from the Solr - User mailing list archive at Nabble.com.