Suggester Issue

2016-07-04 Thread Rajesh Kapur
Hi, I tried to implement suggester using SOLR 6.0.1 with context field. PFB the configuration we are using to implement suggester mySuggester AnalyzingInfixLookupFactory suggester_infixdata_dir DocumentDictionaryFactory SearchSuggestions

Re: Delete Collection in SolrCloud

2016-07-04 Thread Zheng Lin Edwin Yeo
Have you deleted the log and snapshots (the place where the configurations are stored) in the zookeeper? If you have deleted them, then you will need to push your configurations to zookeeper again before creating the collection. Regards, Edwin On 4 July 2016 at 21:37, Swaraj Kumar

Effects of setting termOffsets to false

2016-07-04 Thread Zheng Lin Edwin Yeo
Hi, I would like to find out, is there any implication of using termVectors, but setting the term offsets to false? This is what I am setting for my I'm currently setting the termOffsets to false, because when I set it to true, I'm getting this error during highlighting if I have 3 or more

Re: Index and query brackets

2016-07-04 Thread Anil
NO Ediwin. Thanks for your response. i was checking how to check [1 TO 5] as a content not as a range query. i tried by escaping [ and ] and did not work. seems need to check analyzers at index side. Regards, Anil On 5 July 2016 at 08:42, Zheng Lin Edwin Yeo wrote: > Hi

Re: Index and query brackets

2016-07-04 Thread Zheng Lin Edwin Yeo
Hi Anil, Are you referring to something like q=level:[1 TO 5] ? This will search for level that ranges from 1 to 5. You may refer to the documentation here: https://wiki.apache.org/solr/SolrQuerySyntax Regards, Edwin On 4 July 2016 at 15:05, Anil wrote: > HI, > > how can

Re: stateless solr ?

2016-07-04 Thread Steven Bower
I don't think that's a bad approach with the sidecar.. We run a huge number of solr ~5k instances so adding sidecars for each one ads a lot of extra containers.. What I mean by transition is a container dying and a new one being brought online to replace it.. With the mod we are working on you

Re: stateless solr ?

2016-07-04 Thread Upayavira
What do you mean by a "transition"? Can you configure a sidekick container within your orchestrator? Have a sidekick always run alongside your SolrCloud nodes? In which case, this would be an app that does the calling of the API for you. Upayavira On Mon, 4 Jul 2016, at 08:53 PM, Steven Bower

Re: Filter Query that matches all values of a field

2016-07-04 Thread Ahmet Arslan
Hi Vasu, This question appears occasionally in the mailing list. Please see https://issues.apache.org/jira/browse/LUCENE-7148 ahmet On Monday, July 4, 2016 9:10 PM, Vasu Y wrote: Hi, I have a single type field that can contain zero or more values (comma separated

Re: stateless solr ?

2016-07-04 Thread Steven Bower
My main issue is having to make any solr collection api calls during a transition.. It makes integrating with orchestration engines way more complex.. On Mon, Jul 4, 2016 at 3:40 PM Upayavira wrote: > Are you using Solrcloud? With Solrcloud this stuff is easy. You just add > a

Re: stateless solr ?

2016-07-04 Thread Upayavira
Are you using Solrcloud? With Solrcloud this stuff is easy. You just add a new replica for a collection, and the data is added to the new host. I'm working on a demo that will show this all working within Docker and Rancher. I've got some code (which I will open source) that handles config

Filter Query that matches all values of a field

2016-07-04 Thread Vasu Y
Hi, I have a single type field that can contain zero or more values (comma separated values). This field stores some sort of access value. In the filter, I am given a list of allowed values for the field and a document must be considered if all values contained in its field must be present in

Re: stateless solr ?

2016-07-04 Thread Steven Bower
We have been working on some changes that should help with this.. 1st challenge is having the node name remain static regardless of where the node runs (right now it uses host and port, so this won't work unless you are using some sort of tunneled or dynamic networking).. We have a patch we are

Re: deploy solr on cloud providers

2016-07-04 Thread Shawn Heisey
On 7/4/2016 10:18 AM, Lorenzo Fundaró wrote: > when deploying solr (in solrcloud mode) in the cloud one has to take > care of storage, and as far as I understand it can be a problem > because the storage should go wherever the node is created. If we have > for example, a node on EC2 with its own

deploy solr on cloud providers

2016-07-04 Thread Lorenzo Fundaró
Hi guys, when deploying solr (in solrcloud mode) in the cloud one has to take care of storage, and as far as I understand it can be a problem because the storage should go wherever the node is created. If we have for example, a node on EC2 with its own persistent disk, this node happens to be the

Re: Inconsistent parsing of pure negative queries inside brackets

2016-07-04 Thread Shawn Heisey
On 7/4/2016 7:04 AM, Rahul Verma wrote: > While tracing a bug in one of our systems we notices some interesting > behavior from Solr. These two queries return different results. I fail > to understand why the second query returns empty results just by > adding brackets. Can you please help us

Re: Access Solr via Apache's mod_proxy_balancer or mod_jk (AJP)

2016-07-04 Thread Shawn Heisey
On 7/4/2016 3:54 AM, Andreas Kahl wrote: > Hello everyone, > > we've setup two Solr servers (not SolrCloud) which shall be accessed > via Apache webserver's load balancing (either mod_proxy_balancer or > mod_jk). > > 1. Is it possible to configure Solr >5 to enable an AJP port as this > was the

Re: Inconsistent parsing of pure negative queries inside brackets

2016-07-04 Thread Erick Erickson
The Lucene query parser is _not_ a boolean query language, see Hossman's excellent explanation here: https://lucidworks.com/blog/2011/12/28/why-not-and-or-and-not/ In this case, add =query to them both and you'll see something like: ---no parens "-cat:electronics +name:test" ---parens

Re: solrcloud goes down

2016-07-04 Thread Kent Mu
Thanks! I understand now, let's focus on next question. I configured the "maxConnections" and "maxConnectionsPerHost" in solr.xml as you said before. But I got the same failure result. Looks like the http connection pool is exhausted and most threads are waiting to get a free connection. the

stateless solr ?

2016-07-04 Thread Lorenzo Fundaró
Hello guys, I am trying to run Solr on my infrastructure using docker containers and Mesos. My problem is that I don't have a shared filesystem. I have a cluster of 3 shards and 3 replicas (9 nodes in total) so if I distribute well my nodes I always have 2 fallbacks of my data for every shard.

Delete Collection in SolrCloud

2016-07-04 Thread Swaraj Kumar
Hi, I was trying to delete a collection in solrcloud but some server didn't respond and hence some shard and replica didn't get deleted. I deleted physical memory of remaining shard and replica manually but I can see my collection reference in solrcloud because it is not able to find core. No

Re: clarification on using docvalues for sorting

2016-07-04 Thread Alessandro Benedetti
This is a recurrent question, according to my knowledge docValues are not supported for analyzed fields ( even if the analysis is simply not tokenizing but only lowercasing). At the moment as Erick suggested I encourage you to do the lowercasing before the indexing phase, when you supply your data

Re: Using n-grams vs AnalyzingInfixLookupFactory for suggestions in solr

2016-07-04 Thread Alessandro Benedetti
Hi Harsha, my blog can help : http://alexbenedetti.blogspot.co.uk/2015/07/solr-you-complete-me.html Take a look to the related section. Cheers On Sun, Jun 26, 2016 at 5:27 PM, Erick Erickson wrote: > 1> The difference is that the factory returns the original field >

Re: How to speed up field collapsing on large number of groups

2016-07-04 Thread Alessandro Benedetti
Have you tried with docValues for the fields involved in the collapse group head selection ? With a group head selection of "min" "max"and "sort" should work quite well. Of course it depends of your formula. Does your index change often ? If the warming time is not a problem you could try with :

Re: Spell check suggestions because of case

2016-07-04 Thread Alessandro Benedetti
Hi Kalpana, can you explain better ? In your index you have "diabetes" . Which suggestion you would prefer to see ? Seems not ab-normal to me. Cheers On Wed, Jun 29, 2016 at 9:18 PM, Kalpana wrote: > Hello > > I am getting suggestions for Diabetes as diabetes -

Inconsistent parsing of pure negative queries inside brackets

2016-07-04 Thread Rahul Verma
Hi everyone, While tracing a bug in one of our systems we notices some interesting behavior from Solr. These two queries return different results. I fail to understand why the second query returns empty results just by adding brackets. Can you please help us understand this behavior? *1. Without

Access Solr via Apache's mod_proxy_balancer or mod_jk (AJP)

2016-07-04 Thread Andreas Kahl
Hello everyone, we've setup two Solr servers (not SolrCloud) which shall be accessed via Apache webserver's load balancing (either mod_proxy_balancer or mod_jk). 1. Is it possible to configure Solr >5 to enable an AJP port as this was the case in earlier versions when running in Tomcat? 2.

Re: Error when highlighting on multiValued fields

2016-07-04 Thread Zheng Lin Edwin Yeo
I found that if I set the termOffsets="false", then I can eliminate the error, and the highlighting will work normally. But what could be the reason that setting the termOffsets will cause the error on the multiValued field with fieldType="string"? Regards, Edwin On 4 July 2016 at 12:30,

filter groups

2016-07-04 Thread Thomas Scheffler
Hi, I have metadata and file indexed in solr. All have a different id of cause but share the same value for "returnId" if they belong to the same metadata that describes a bunch of files (1:n). When I start a search. I usually use grouping instead of join queries to keep the information

Index and query brackets

2016-07-04 Thread Anil
HI, how can index and query content with brackets as bracket is used for range query Ex : [DATA] - Anil