Edismax ignoring queries containing booleans

2020-01-06 Thread Claire Pollard
In Solr 8.3.0 I've got an edismax query parser in my search handler, and it seems to be ignoring Boolean operators such as AND and OR when searching using an IntPointField. I was hoping to use a query to this field to return a batch of documents with non-sequential IDs, so a range would be inap

Re: Edismax ignoring queries containing booleans

2020-01-06 Thread Saurabh Sharma
Please share the query which you are creating. On Mon, Jan 6, 2020, 3:52 PM Claire Pollard wrote: > In Solr 8.3.0 I've got an edismax query parser in my search handler, and > it seems to be ignoring Boolean operators such as AND and OR when searching > using an IntPointField. > > I was hoping to

RE: Edismax ignoring queries containing booleans

2020-01-06 Thread Claire Pollard
I'm using: recordID:(18 OR 19 OR 20) Which should return 2 records (as 18 doesn't exist), but it returns none. recordID is a LongPointField (sorry I said Int in my previous message). -Original Message- From: Saurabh Sharma Sent: 06 January 2020 10:35 To: solr-user@lucene.apache.org Su

Re: Edismax ignoring queries containing booleans

2020-01-06 Thread Saurabh Sharma
It should work well. I have just tested the same with 8.3.0. Thanks Saurabh Sharma On Mon, Jan 6, 2020, 4:31 PM Claire Pollard wrote: > I'm using: > > recordID:(18 OR 19 OR 20) > > Which should return 2 records (as 18 doesn't exist), but it returns none. > recordID is a LongPointField (sorry I

RE: Edismax ignoring queries containing booleans

2020-01-06 Thread Claire Pollard
Ok... It doesn't work for me. I'm fairly new to Solr so any help would be appreciated! My managed-schema field and field type look like this: And my solrconfig.xml select/query handlers look like this: all

Accessing other core in SolrCloud mode

2020-01-06 Thread Arnold Bronley
Hi, I have one custom Solr plugin that uses following logic to access some other core present on the same Solr instance. request.getCore().getCoreContainer().getCore(otherCoreName) where request is an object of type SolrQueryRequest This works fine in master-slave mode. Now if try to use the sa

Re: Does CloudMLTQParser support getting related documents from different shards?

2020-01-06 Thread Arnold Bronley
* What results do you get when you just try it in cloud mode? * When I try it in SolrCloud mode, the part that deals with fetching the results from the same core works fine. However, the part that deals with fetching results from other cores does not work. *This is a _parser_, it’s just in ch

Re: Accessing other core in SolrCloud mode

2020-01-06 Thread Erick Erickson
This kind of seems like an XY problem. Why do you want to get to the other core? If you need to run the same query on multiple cores… you shouldn’t be thinking that way, think “collections” rather than cores. And you can use “collection aliasing” (see the Collections API CREATEALIAS command) to al

Re: Accessing other core in SolrCloud mode

2020-01-06 Thread Arnold Bronley
Hi Erick, Thanks for replying. I know that I should deal at collection level in SolrCloud mode and leave dealing with cores to SolrCloud. I am also aware of collection aliasing feature. However, the plugins that I am trying to migrate to SolrCloud have some usecases like following: 1. One of the

Re: Accessing other core in SolrCloud mode

2020-01-06 Thread Erick Erickson
For <1>, hmmm. Apart from redesigning…. You can create a single-shard collection. The trick is to co-locate one replica in the “otherCollection” on _every_ Solr instance your main collection is on. You’ll have to look at the ZK collection information to know exactly what the otherCore name is, it’l

Re: Edismax ignoring queries containing booleans

2020-01-06 Thread Edward Ribeiro
Hi Claire, You can add the following parameter `&debug=all` on the URL to bring back debugging info and share with us (if you are using the Solr admin UI you should check the `debugQuery` checkbox). Also, if you are searching a sequence of values you could perform a range query: recordID:[18 TO 2