Block Join Query Parsers regular expression feature workaround req
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: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 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 Sankalp Gupta
Re: Block Join Query Parsers regular expression feature workaround req
Hi Mikhail, It won't solve my problem. For ex: Suppose my docs are like this: city1 city2 city2 city3 Now if I want* a query to return me all the users not having any address* related to *city1* (i.e. only userid=2 should be in the result)and then if i query: *q={!parent which=userid:*}*:* -address:city1* This will return me two* results i.e.** userid=2 and userid=1 *(as userid=1 is also having a child whose address is city2) , *desired output was userid=2 only.* On Tue, Feb 17, 2015 at 8:12 PM, Mikhail Khludnev < mkhlud...@griddynamics.com> wrote: > try to search all children remove those who has a value1 by dash, then join > remaining > q={!parent which=contentType:parent}contentType:child -contentType:value1 > if the space in underneath query causes the problem try to escape it or > wrap to v=$subq > > > > On Tue, Feb 17, 2015 at 4:13 PM, Sankalp Gupta > > 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: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 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 > > Sankalp Gupta > > > > > > -- > Sincerely yours > Mikhail Khludnev > Principal Engineer, > Grid Dynamics > > <http://www.griddynamics.com> > >
index time boosting through partial update
Hi I'm using solr-4.7.2 and trying to set boost at field level at index time in atomic updates(tried though xml update handler). But its not happening. Also if you index the full doc with index time boost and update any other field partially then also the boost value of other field changes to 1.0. There must be a JIRA filed for this bug. But I was not able to find that. Could anyone please help? Regards Sankalp *SSE* 246 OKHLA PHASE III, NEW DELHI 110 020, INDIA
need help in field collapsing
Hi I have about 15 fields in my solr schema but there are two fields lets say them field1 and field2 in my schema. For most searches I feel I have a perfect schema but for one use case it is not apt: *problem*: I have to group by column using field1 and then I have to search a particular value "a" in field1 only when "b" is not present in any instance of field2 of this respective group. (Same as using "having" after group by in mysql). Is there a way to do this in Solr or do I have to maintain a separate schema for this(which will be a very costly operation for us). Thanks in advance
field collapsing related problem
Hi I have about 15 fields in my solr schema but there are two fields lets say them field1 and field2 in my schema. For most searches I feel I have a perfect schema but for one use case it is not apt: *problem*: I have to group by column using field1 and then I have to search a particular value "a" in field1 only when "b" is not present in any instance of field2 of this respective group. (Same as using "having" after group by in mysql). Is there a way to do this in Solr or do I have to maintain a separate schema for this(which will be a very costly operation for us). Thanks in advance Sankalp
edismax with multiple words for keyword tokenizer splitting on space
Hi I come across this weird behaviour in solr. I'm not sure that why this is desired in solr. I have filed this on stackoverflow. Please check http://stackoverflow.com/questions/27795177/edismax-with-multiple-words-for-keyword-tokenizer-splitting-on-space Thanks Sankalp Gupta
bulk indexing with optimistick lock
Hi All, My server side we are trying to add multiple documents in a list and then ask solr to add them in solr (using solrj client) and then after its finished calling the commit. Now we also want to control concurrency and for that we wanted to use solr's optimistic lock/versioning feature. That is good but *in case of bulk docs add, the solr doesn't perform add docs as expected.* It fails as soon as it finds any doc with optimistic lock failure and return response telling only the first failed doc (adding all docs before that and no docs are added after that). *We require solr to add all docs for which no versioning problem is there and return list of all failed docs. * Please can anyone suggest a way to do this? Regards Sankalp Gupta