Re: Does {!child} query support nested Queries ("v=")

2017-03-08 Thread Mikhail Khludnev
Hello, Frank. It's not clear what field is. I guess that per shard {!child} results might clash by id during merge. Can you make sure that per child ids are unique across all shards? On Mon, Mar 6, 2017 at 10:47 PM, Kelly, Frank wrote: > Hi Mikhail, > Sorry I didn’t reply sooner > > Here are

Re: Does {!child} query support nested Queries ("v=")

2017-03-06 Thread Kelly, Frank
Hi Mikhail, Sorry I didn’t reply sooner Here are some example docs - each document for a userAccount object has 1 or more nested documents for our userLinkedAccount object SolrInputDocument(fields: [type=userAccount, typeId=userAccount/HERE-8ce41333-7c08-40d3-9b2c-REDACTED, id=userAccount/HERE

Re: Does {!child} query support nested Queries ("v=")

2017-03-02 Thread Mikhail Khludnev
Hello, Frank! The closest equivalent would be q=+type:userAccount +givenName:test* And make sure please that it's parsed correctly with debugQuery=true. Can you also narrow the query to troubleshoot the difference? ahhh I probably understood.. shards results are merged by uniqueKey, can you share

Does {!child} query support nested Queries ("v=")

2017-03-02 Thread Kelly, Frank
This is Solr Cloud 5.3.1 I have a query like the following q={!child of="type:userAccount" v="givenName:test*”} Intent: Show me all children of the type:userAccount where userAccount.givenName:test* If I run the query multiple times I get a very different numFound difference 186,560 to 187,412

Re: problems with nested queries

2016-05-23 Thread Matteo Grolla
white cat" > > Can you open a JIRA for this? > > -Yonik > > > On Mon, May 16, 2016 at 10:23 AM, Matteo Grolla > wrote: > > Hi everyone, > > I have a problem with nested queries > > If the order is: > > 1) query > > 2) nested query (embedded in _q

Re: problems with nested queries

2016-05-16 Thread Yonik Seeley
> Hi everyone, > I have a problem with nested queries > If the order is: > 1) query > 2) nested query (embedded in _query_:"...") > everything works fine > if it is the opposite, like this > > http://localhost:8983/solr/test/select?q=_query_:%22{!lucene%20df

problems with nested queries

2016-05-16 Thread Matteo Grolla
Hi everyone, I have a problem with nested queries If the order is: 1) query 2) nested query (embedded in _query_:"...") everything works fine if it is the opposite, like this http://localhost:8983/solr/test/select?q=_query_:%22{!lucene%20df=name_t}(\%22black%20dog\%22)%22%20O

Re: Sum of nested queries in Solr

2014-05-30 Thread Ahmet Arslan
/questions/23959727/sum-of-nested-queries-in-solr about taking the sum of OR'd nested queries.  I'll repeat it here, but if you want some SO points and have an answer, feel free to answer there. [quote] We have a search that takes text from two different fields and then searches

Sum of nested queries in Solr

2014-05-30 Thread Diego Fernandez
Hi! I have a question which I posted on http://stackoverflow.com/questions/23959727/sum-of-nested-queries-in-solr about taking the sum of OR'd nested queries. I'll repeat it here, but if you want some SO points and have an answer, feel free to answer there. [quote] We have a s

Elevation and nested queries

2014-02-03 Thread Holger Rieß
I have a simple query 'q=hurco' (parser type edismax). Elevation is properly configured, so I get the expected results: ... 7HURCO 0~* true A similar query with a nested query 'q=(hurco AND _query_:"{!field f=debtoritem v=0~*}")' returns the same document but without el

nested queries + joins performance

2013-07-11 Thread Marcelo Elias Del Valle
should be a match. I was able to get this working using the following solr query: q= *:* AND _query_:"{!join from=root_id to=id}acessory1:Keyboard AND acessory2:Mouse" AND _query_:"{!join from=root_id to=id}acessory1:Monitor AND acessory2:Tablet" As we can see, I am usi

Re: Nested queries with proximity/slop

2013-03-21 Thread Yonik Seeley
https://issues.apache.org/jira/browse/SOLR-4625 -Yonik http://lucidworks.com On Tue, Mar 19, 2013 at 11:12 PM, Yonik Seeley wrote: > On Tue, Mar 19, 2013 at 8:52 PM, Michael Ryan wrote: >> I was wondering if anyone is aware of an existing Jira for this bug... >> >> _query_:"\"a b\"~2" >> ...is

Re: Nested queries with proximity/slop

2013-03-19 Thread Yonik Seeley
On Tue, Mar 19, 2013 at 8:52 PM, Michael Ryan wrote: > I was wondering if anyone is aware of an existing Jira for this bug... > > _query_:"\"a b\"~2" > ...is parsed as... > PhraseQuery(someField:"a b") > ...instead of the expected... > PhraseQuery(someField:"a b"~2) > > _query_:"\"a b\""~2 > ...is

Nested queries with proximity/slop

2013-03-19 Thread Michael Ryan
I was wondering if anyone is aware of an existing Jira for this bug... _query_:"\"a b\"~2" ...is parsed as... PhraseQuery(someField:"a b") ...instead of the expected... PhraseQuery(someField:"a b"~2) _query_:"\"a b\""~2 ...is parsed as... PhraseQuery(someField:"a b"~2) _query_:"\"a b\"~2"~3 ...i

Re: bf, nested queries and local params

2013-01-22 Thread Jack Krupansky
e spaces or "^". -- Jack Krupansky -Original Message- From: Anatoli Matuskova Sent: Tuesday, January 22, 2013 4:32 AM To: solr-user@lucene.apache.org Subject: Re: bf, nested queries and local params q=table&bf=product(scale(product(query({!v='color'}),1),0,1),100)

Re: bf, nested queries and local params

2013-01-22 Thread Anatoli Matuskova
oving spaces between params results in errors too). -- View this message in context: http://lucene.472066.n3.nabble.com/bf-nested-queries-and-local-params-tp4035216p4035284.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: bf, nested queries and local params

2013-01-21 Thread Jack Krupansky
work, sounds like a bug. -- Jack Krupansky -Original Message- From: Anatoli Matuskova Sent: Monday, January 21, 2013 9:10 PM To: solr-user@lucene.apache.org Subject: Re: bf, nested queries and local params q=table&bf=product(scale(query({!v='color'}),0,1),100) Gives me b

Re: bf, nested queries and local params

2013-01-21 Thread Jack Krupansky
ne.apache.org Subject: Re: bf, nested queries and local params Getting closer: q=table&bf=product(scale(query({!v='with color'}),0,1),100) I was expecting to get the score from query({!v='with color'}) so the scale would look like (this is just an example in a document): sc

Re: bf, nested queries and local params

2013-01-21 Thread Jack Krupansky
013 7:53 PM To: solr-user@lucene.apache.org Subject: Re: bf, nested queries and local params Looks like doing this: /Wrap the query argument for the scale function with the query function: q=table&bf=product(scale(query({!type=dismax qf=description,color v='with color'}),0,1),pr

Re: bf, nested queries and local params

2013-01-21 Thread Anatoli Matuskova
ted query but can't figure out what -- View this message in context: http://lucene.472066.n3.nabble.com/bf-nested-queries-and-local-params-tp4035216p4035218.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: bf, nested queries and local params

2013-01-21 Thread Jack Krupansky
To: solr-user@lucene.apache.org Subject: bf, nested queries and local params I'm trying to reach this: Having this query: q=table&bf=product(scale({!type=dismax qf=description,color v='with color'},0,1),price) And using on q (in solrconfig.xml) defType=dismax, qf=title, des

bf, nested queries and local params

2013-01-21 Thread Anatoli Matuskova
pe=dismax) inside the first parameter of the scale function? -- View this message in context: http://lucene.472066.n3.nabble.com/bf-nested-queries-and-local-params-tp4035216.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: optional nested queries

2011-07-01 Thread joelmats
Thanks! I was wondering why my highlighting wasnt' working either. -- View this message in context: http://lucene.472066.n3.nabble.com/optional-nested-queries-tp3128847p3130593.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: optional nested queries

2011-07-01 Thread Erik Hatcher
Put an OR between your two nested queries to ensure you're using that operator. Also, those hl params in your first dismax don't really belong there and should be separate parameters globally. Erik On Jul 1, 2011, at 06:19 , joelmats wrote: > Hello! > > Is it

optional nested queries

2011-07-01 Thread joelmats
Hello! Is it possible to have an optional nested query. I have 2 nested queries and would like to have the first query mandatory but the second optional. ie.. if there is a match on the second query, i would like it to improve the score but it is not required. A sample query I am currently using

Re: optional nested queries

2011-07-01 Thread kenf_nc
the document doesn't have a field called has_image at all, the dummy:1 will always pass. Ken -- View this message in context: http://lucene.472066.n3.nabble.com/optional-nested-queries-tp3128847p3129064.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: nested queries

2009-11-19 Thread Jay Hill
I don't think your queries are actually nested queries. Nested queries key off of the "magic" field name _query_. You're right however that there is very little in the way of documentation of examples of nested queries. If you haven't seen this blog about them yet you

Re: nested queries

2009-11-19 Thread Andrea Campi
Grant, Grant Ingersoll wrote: On Nov 19, 2009, at 7:02 AM, Andrea Campi wrote: To make things easier and more maintainable, I'd like to use nested queries for that; I'd like to be able to write: q={!boost b=$dateboost v=ftext:$terms^1000 OR text:$terms}&dateboost=product(

Re: nested queries

2009-11-19 Thread Grant Ingersoll
On Nov 19, 2009, at 7:02 AM, Andrea Campi wrote: > Hi, > > I'm trying to wrap my head around nested queries and I'm having some trouble > figuring out how far can I go with them. I have to say documentation is still > a bit sparse... :/ > > > I'm tr

nested queries

2009-11-19 Thread Andrea Campi
Hi, I'm trying to wrap my head around nested queries and I'm having some trouble figuring out how far can I go with them. I have to say documentation is still a bit sparse... :/ I'm trying to build a query that would search the same term(s) on different fields with differe

Re: Which query parser handles nested queries?

2009-10-25 Thread Chris Hostetter
: http://www.lucidimagination.com/blog/2009/03/31/nested-queries-in-solr/). : When working with Solr 1.3 stable, I'm able to use this syntax : effectively using the default requestHandler, but when I am : hand-rolling my own requestHandler, it doesn't recognize the _query_ the magic fie

Which query parser handles nested queries?

2009-10-16 Thread Mat Brown
Hi all, I'm trying to figure out which query parser handles nested queries (the kind documented here: http://www.lucidimagination.com/blog/2009/03/31/nested-queries-in-solr/). When working with Solr 1.3 stable, I'm able to use this syntax effectively using the default requestHandler,