Re: index fields with custom gaps between terms

2017-12-16 Thread Mikhail Khludnev
You can assign multiple values to text field and leverage positionIncrementGap https://lucene.apache.org/solr/guide/6_6/field-type-definitions-and-properties.html#general-properties And why wouldn't you use your Lucene plugin in Solr? On Sun, Dec 17, 2017 at 8:45 AM, Amin Raeiszadeh

index fields with custom gaps between terms

2017-12-16 Thread Amin Raeiszadeh
how is it possible to add custom gaps between terms of TextFiled in solr documents. for example between term number 1 and 2 we need 200 gap and between term number 2 and 3 we need 1000 gap. i can only send key-value pair as String to solr(then solr index fields in different types according to

Re: Changing merge policy config on production

2017-12-16 Thread alexpusch
Thanks Erick, good point on maxMergedSegmentMB, many of my segments really are max out. My index isn't 800G, but it's not far from it - it's about 250G per server. I have high confidence in Solr and my EC2 i3-2xl instances, so far I got pretty good results. -- Sent from:

Re: Changing merge policy config on production

2017-12-16 Thread Erick Erickson
So I'm guessing you have something on the order of an 800G index? The max segment size is roughly 5G (by default) and assuming all your segments are close to the max size I get 160 * 5G = 800G, but that may be off. I think you're barking up the wrong tree if these numbers are close to correct.

Re: legacy replication

2017-12-16 Thread Erick Erickson
Yeah, much as I love SolrCloud (and make most of my living working with it), it does have its complexities. My rule of thumb is that you really want to consider SolrCloud when you start having to shard or need NRT searching. You trade the complexity of maintaining your own sharding etc. for the

Re: How to sort on dates?

2017-12-16 Thread Georgios Petasis
Στις 15/12/2017 20:05, ο Shawn Heisey έγραψε: On 12/15/2017 2:53 AM, Georgios Petasis wrote: I have a field of type "date_range" defined as: The problem is that sorting on this field does not work (despite the fact that I put dates in there). Instead I get an error prompting to perform

Re: How to sort on dates?

2017-12-16 Thread Georgios Petasis
Στις 15/12/2017 20:05, ο Shawn Heisey έγραψε: On 12/15/2017 2:53 AM, Georgios Petasis wrote: I have a field of type "date_range" defined as: The problem is that sorting on this field does not work (despite the fact that I put dates in there). Instead I get an error prompting to perform

Re: legacy replication

2017-12-16 Thread Shawn Heisey
On 12/15/2017 12:12 PM, David Hastings wrote: Also the complexity of adding another 3 or more machines just to do nothing but ZK stuff was getting out of hand. You can run ZK on the same machines that are running Solr. The only strong recommendation that I would make is that it should be a

Re: How to restart solr in docker?

2017-12-16 Thread alexpusch
While I don't know what exact solr image you use I can tell you this: 1. The command of your dockerfile probably starts solr. A Docker container will automatically shutdown if the process that was started by it's command is killed. Meaning you should never 'restart' a process in a container, but

Re: Changing merge policy config on production

2017-12-16 Thread alexpusch
To be clear - I'm talking about query performance, not indexing performance. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Changing merge policy config on production

2017-12-16 Thread alexpusch
Thanks for the quick answer Erick, I'm hoping to improve performance by reducing the number of segments. Currently I have ~160 segments. Am I wrong thinking it might improve performance? -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html