Re: Difference in query behavior.

2015-11-30 Thread Jack Krupansky
The mm parameter or default operator logic only applies to the top level of the query. Once you get nested in parentheses below the top level, Solr/Lucene reverts to the default of the OR (SHOULD) operator. -- Jack Krupansky On Mon, Nov 30, 2015 at 5:45 AM, Modassar Ather

optimize cache-hit-ratio of filter- and query-result-cache

2015-11-30 Thread Johannes Siegert
Hi, some of my solr indices have a low cache-hit-ratio. 1 Does sorting the parts of a single filter-query have impact on filter-cache- and query-result-cache-hit-ratio? 1.1 Example: fq=field1:(2 or 3 or 1) to fq=field1:(1 or 2 or 3) -> if 1,2,3 are randomly sorted 2 Does sorting the parts of

Re: Soft commit and hard commit

2015-11-30 Thread Alessandro Benedetti
In particular please give us additional details about your search use case . If the master is not searched, do you mean you have a master/slave architecture ? In the case, how replication is managed ? If you are replicating old style, you are going to be able to see only what is in the disk at

Re: Difference in query behavior.

2015-11-30 Thread Upayavira
I cannot immediately explain the behaviour you are seeing, but can't you use a filter query to achieve the same? Add fq=topic:facet to your query string, and you'll be set. As to the original behaviour, the parsed query looks wrong, as it is missing a bracket. Can you provide all of the versions

Re: Block Joins

2015-11-30 Thread Rick Leir
@Mikhail++ Yes! And the query below works. As Mark Bennett notes, "seems odd to need to specify filters again". Is there a performance impact, perhaps accessing the index twice? curl http://localhost:8983/solr/dorsetdata/query -d 'q={! parent which="content_type:parentDocument"} type_s:page AND

Re: optimize cache-hit-ratio of filter- and query-result-cache

2015-11-30 Thread Mikhail Khludnev
On Mon, Nov 30, 2015 at 12:46 PM, Johannes Siegert < johannes.sieg...@marktjagd.de> wrote: > Hi, > > some of my solr indices have a low cache-hit-ratio. > > 1 Does sorting the parts of a single filter-query have impact on > filter-cache- and query-result-cache-hit-ratio? > 1.1 Example:

/get Request Handler not working

2015-11-30 Thread Vikash Agarwal
Hi, I am trying to use the /get Request handler so as to retrieve the currently indexed data. But this does not seem to work for me. I am using 4.12 version of Solr. Also I am using CloudSolrServer to get the data. A snippet of code can be found below: SolrQuery solrQuery = new SolrQuery();

Re: Block Joins

2015-11-30 Thread Mikhail Khludnev
Rick, I'd happy that it helps. You need to thank Varun who made [child]. There is no performance impact for sure, it's a compromise or either nobody considered it as an issue. You can raise a new JIRA and describe how it should work in general and make everybody happy. On top of my head are

Re: /get Request Handler not working

2015-11-30 Thread Mikhail Khludnev
Assuming that you can invoke it via URL, and giving the discussion https://issues.apache.org/jira/browse/SOLR-6449?focusedCommentId=14175587=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14175587 you might need to access responded document in a different way. On Mon,

Re: Difference in query behavior.

2015-11-30 Thread Alexandre Rafalovitch
On 30 November 2015 at 05:45, Modassar Ather wrote: > > I have a query title:(solr lucene api). The mm is set to 100% using q.op as > +(title:solr **title:faceting** title:api)~3 Does it though? solr lucene api => solr faceting api! Is it possible you are staring at the

Synonyms in Search Results and More Accurate Matches

2015-11-30 Thread Brian Narsi
I am using edismax with mm=1 and qs=6 I have a field type with synonyms attached to it. A sample synonym is: toothbrush tbrush For the following data: 1) Phillips toothbrush 2) Oral-B tbrush 3) Phillips Sonicare toothbrush If a user searches for q = tbrush I am getting 1), 3), 2) i.e.

RE: Re:Re: Implementing security.json is breaking ADDREPLICA

2015-11-30 Thread Oakley, Craig (NIH/NLM/NCBI) [C]
Thank you, Anshum and Nobel, for your progress on SOLR-8326 I have a couple questions to tide me over until 5.4 (hoping to test security.json a bit further while I wait). Given that the seven steps (tar xvzf solr-5.3.1.tgz; tar xvzf zookeeper-3.4.6.tar.gz; zkServer.sh start zoo_sample.cfg;

RE: SolrCloud Shard + Replica on Multiple servers with SolrCloud

2015-11-30 Thread Adrian Liew
Hi all, Will really like to seek anyone's opinion on my query below. Desperate to know if this is possible or if someone is keen to share their thought experience. Best regards, Adrian -Original Message- From: Adrian Liew [mailto:adrian.l...@avanade.com] Sent: Saturday, November 28,

Re: Difference in query behavior.

2015-11-30 Thread Modassar Ather
Thanks for your response. Upayavira : The missing bracket is a copy paste error. Correct parsed query : +(+topic:facet +(title:solr title:lucene title:api)). Use of fq is not an option as these are user queries. Alexandre : That is just an example query. Those terms used are just to explain the

Re: Re:Re: Implementing security.json is breaking ADDREPLICA

2015-11-30 Thread Anshum Gupta
Hi Craig, As part of my manual testing for the 5.3 RC, I tried out collection admin request restriction and update restriction on a single node setup. I don't have the manual test steps documented but it wasn't too intensive I'd admit. I think the complications involved in stopping specific nodes

Re: Migrating from cores to collections

2015-11-30 Thread William Bell
ok. What about using DIH handler? Does it index in a SolrCloud setup ? Or how would I convert a query to use SolrJ ? On Mon, Nov 30, 2015 at 5:36 AM, Upayavira wrote: > > > On Sun, Nov 29, 2015, at 07:38 PM, William Bell wrote: > > OK. Been using Cores for 4 years. Want to

Difference in query behavior.

2015-11-30 Thread Modassar Ather
Hi, I have a query title:(solr lucene api). The mm is set to 100% using q.op as AND. When the query is executed it returns documnets having all the terms. It parses to following: +(title:solr title:faceting title:api)~3 Similarlly I have another query like this topic:facet AND title:(solr lucene

Using OR along with join query results causing NullPointerException in Solr 4.7.2

2015-11-30 Thread SuReN
Hello Lucene/Solr Experts, I am getting NullPointerException while using OR along with the join results. Following are the documents and fields configured in my solr server(version 4.7.2). *brands {id, brand_name}* *products {id, product_name, brand_id}* Following are the data indexed

Re: Using OR along with join query results causing NullPointerException in Solr 4.7.2

2015-11-30 Thread Mikhail Khludnev
On Mon, Nov 30, 2015 at 1:51 PM, SuReN wrote: > o=id} product_name:Desire* just the first guess, try to avoid the space in the clause above -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics

Re: Soft commit and hard commit

2015-11-30 Thread Ali Nazemian
Dear Midas, Hi, AFAIK, currently Solr uses virtual memory for storing memory maps. Therefore using 36GB from 48GB of ram for Java heap is not recommended. As a rule of thumb do not access more than 25% of your total memory to Solr JVM in usual situations. About your main question, setting

Re: Migrating from cores to collections

2015-11-30 Thread Upayavira
On Sun, Nov 29, 2015, at 07:38 PM, William Bell wrote: > OK. Been using Cores for 4 years. Want to migrate to collections / Cloud. > > Do we have to change our queries? > > http://loadbalancer:8983/solr/corename/select?q=*:* > > What does this become once we have the collection sharded? Do we

Re: Spellcheck on first character

2015-11-30 Thread Alessandro Benedetti
Good to know Markus !! Cheers On 28 November 2015 at 01:11, Ryan Yacyshyn wrote: > Thanks Markus, missed that. I'll try it out. > > > On Sat, 28 Nov 2015 at 00:47 Markus Jelsma > wrote: > > > Hi - this is default behaviour, see > > >

ZooKeeper nodes die taking down Solr Cluster?

2015-11-30 Thread Kelly, Frank
I am somewhat new to SolrCloud and ZooKeeper. We are deploying ZK and SolrCloud on AWS. We are noticing an issue where the one of the three nodes in the ZooKeeper ensemble "drops out" of the ensemble (although the Java process continues to run fine and nothing obviously bad in the ZooKeeper log

Re: Setting up Solr on multiple machines

2015-11-30 Thread Mugeesh Husain
Hi, You should create below command on any of solr server. bin/solr create -c mytestcollection -d data_driven_schema_configs -shards 2 -replicationFactor 2 it will display as mytestcollection-- 1.>shard1