Re: Date Comparison in SOLR

2016-11-07 Thread Sadheera Vithanage
Thanks Erick. I tried with function queries, but still not getting it right, may be not using it the correct way. If someone can let me know how to get the difference of 2 date fields, I think that might help. Thank you. On Tue, Nov 8, 2016 at 11:55 AM, Erick Erickson

Re: Date Comparison in SOLR

2016-11-07 Thread Erick Erickson
This looks much more like a function query Best, Erick On Mon, Nov 7, 2016 at 4:18 PM, Sadheera Vithanage wrote: > Hi Experts, > > I am trying to compare dates as below in SOLR and not getting the syntax > right. > If someone could help, It will be so great. > > >

Date Comparison in SOLR

2016-11-07 Thread Sadheera Vithanage
Hi Experts, I am trying to compare dates as below in SOLR and not getting the syntax right. If someone could help, It will be so great. _SolrIntField__i+NOW:{NOW TO *} Basically what i am trying to do is add an existing int field in solr to current date and compare it with another date field.

Re: Re-register a deleted Collection SorlCloud

2016-11-07 Thread Erick Erickson
You've got it. You should be quite safe if you 1> create the same number of shards as you used to have 2> match the shard bits. I.e. collection1_shard1_replica1 as long as the collection1_shard# parts match you should be fine. If this isn't done correctly, the symptom will be that when you update

ClassNotFoundException with Custom ZkACLProvider

2016-11-07 Thread Solr User
This is mostly just an FYI regarding future work on issues like SOLR-8792. I wanted admin update but world read on ZK since I do not have anything sensitive from a read perspective in the Solr data and did not want to force all SolrCloud clients to implement authentication just for read. So, I

Re: Re-register a deleted Collection SorlCloud

2016-11-07 Thread Chetas Joshi
Thanks Erick. I had replicationFactor=1 in my old collection and going to have the same config for the new collection. When I create a new collection with number of Shards =20 and max shards per node = 1, the shards are going to start on 20 hosts out of my 25 hosts Solr cluster. When you say "get

Re: Re-register a deleted Collection SorlCloud

2016-11-07 Thread Erick Erickson
That should work. The caveat here is that you need to get the each shards index to the corresponding shard on your new collection. Of course I'd back up _all_ of these indexes before even starting. And one other trick. First create your collection with 1 replica per shard (leader-only). Then

how to add file date ?

2016-11-07 Thread win harrington
I'm using the bin/post tool to insert text and PDF files into Solr. I'd like to add the file last modified dateto the schema. How do I put the file's date into file_data? Thank you

Re-register a deleted Collection SorlCloud

2016-11-07 Thread Chetas Joshi
I have a Solr Cloud deployed on top of HDFS. I accidentally deleted a collection using the collection API. So, ZooKeeper cluster has lost all the info related to that collection. I don't have a backup that I can restore from. However, I have indices and transaction logs on HDFS. If I create a

Re: High CPU Usage in export handler

2016-11-07 Thread Ray Niu
Hello: Any follow up? 2016-11-03 11:18 GMT-07:00 Ray Niu : > the soft commit is 15 seconds and hard commit is 10 minutes. > > 2016-11-03 11:11 GMT-07:00 Erick Erickson : > >> Followup question: You say you're indexing 100 docs/second. How often

Search across nested child docs

2016-11-07 Thread Vinod Singh
I have nested documents indexed in SOLR 6.2. The block join query works well on both parent and child documents. My use case has a scenario where a condition needs to be fulfilled across two child docs as shown below - fq={!parent which=PARENT_DOC_TYPE:PARENT}(childA_field_1:432 AND

Change Solr contextPath =“/“ ?

2016-11-07 Thread matthew grisius
I previously asked this question and did not receive any suggestions. I also asked on Jetty-Users and one person suggested I ask again here so I thought it might be worth it to ask again. Solr is deployed to “/solr” and is then mapped to “/“, e.g. http://localhost:8983/

Re: edismax, phrase field gets ignored for keyword tokenizer

2016-11-07 Thread Stefan Matheis
Which is everything fine by itself - but doesn’t shed more light on my initial question Vincenzo, does it? probably i shoudn’t have mentioned partial matches in the first place, that might have lead into the wrong direction - they are not relevant for now / not for this question. I’d like to know

Re: load balancer for solr

2016-11-07 Thread John Bickerstaff
So from a "load balancing" perspective, you may want to consider using SolrCloud... It was designed (as I understand it) to be able to handle large loads, although to understand how it will work in your situation you will have to test. On Mon, Nov 7, 2016 at 6:29 AM, Mugeesh Husain

Re: Keeping faster and slower solr slaves alined with the same index version

2016-11-07 Thread Erick Erickson
Not that I know of. Can you session lock users to a particular region? Best, Erick On Sun, Nov 6, 2016 at 7:49 PM, Csongor Gyuricza wrote: > We have the following high-level solr setup: > > region a) 1 solr master + 3 slaves > region b) 1 solr repeater

Re: Sort by date? (solr.DateRangeField)

2016-11-07 Thread Erick Erickson
My guess is that it's this: multiValued="true" Most sorting doesn't work on mutivalued fields as it's ambiguous what sorting means; which value should be used? This isn't a very helpful stack trace if that's the issue though I'll admit. There are some JIRAs out there to allow sorting on, say, the

Re: edismax, phrase field gets ignored for keyword tokenizer

2016-11-07 Thread Vincenzo D'Amore
If you don't want partial matches with edismax you should always use StandardTokenizerFactory and play with mm parameter. On Mon, Nov 7, 2016 at 4:50 PM, Stefan Matheis wrote: > Vincenzo, > > thanks for the response - i know that only the Keyword Tokenizer by > itself

Re: edismax, phrase field gets ignored for keyword tokenizer

2016-11-07 Thread Stefan Matheis
Vincenzo, thanks for the response - i know that only the Keyword Tokenizer by itself does not do anything. as pointed at the end of the initial mail, i’m applying a pattern replace for everything non-numeric to make it actually useful. and especially because of the tokenization based on

Re: edismax, phrase field gets ignored for keyword tokenizer

2016-11-07 Thread Vincenzo D'Amore
Hi Stefan, I think the problem is solr.KeywordTokenizerFactory. This tokeniser does not make any tokenisation to the string, it returns exactly what you have. '+49 1234 12345678' -> '+49 1234 12345678' On the other hand, using edismax you are looking for '+49', '1234' and '12345678' and none of

edismax, phrase field gets ignored for keyword tokenizer

2016-11-07 Thread Stefan Matheis
I’m guessing that i’m missing something obvious here - so feel free to ask for more details and as well point out other directions i should following. the problem goes as follows: the input in one case might be a phone number (like +49 1234 12345678), since we’re using edismax the parts gets

Re: Performance Tuning in Solr

2016-11-07 Thread Shawn Heisey
On 11/7/2016 6:27 AM, Mugeesh Husain wrote: > For the large amount of data set, going to implement many shard and > many node. I am unaware of performance tuning in solr ? how people use > or check solr performance ? Is there any open source tool or i should > create my own for this and how ?

Re: Custom .... - Web toolkit for developing Solr Client application

2016-11-07 Thread Shawn Heisey
On 11/7/2016 3:31 AM, tesm...@gmail.com wrote: > Thanks all for providing help to my previous question. I make my question > generic to make it more clear. > > I have developed index with Lucene/Solr and can search the indexed data > using Solr 'browse'. This interface provides some of the

Re: Apache Solr Question

2016-11-07 Thread Alexandre Rafalovitch
Solr ships with 10 different examples. Most of them work (ignore DIH - RSS one and maybe DIH - email one). Try doing those and understanding them, then you will have better understanding of what's possible and also exactly where you want to go. Regards, Alex. P.s. This will help if you are

Re: load balancer for solr

2016-11-07 Thread Mugeesh Husain
Thanks Shawn Heisey,Its seems impression, let me try it on POC. -- View this message in context: http://lucene.472066.n3.nabble.com/load-balancer-for-solr-tp4304756p4304879.html Sent from the Solr - User mailing list archive at Nabble.com.

Performance Tuning in Solr

2016-11-07 Thread Mugeesh Husain
For the large amount of data set, going to implement many shard and many node. I am unaware of performance tuning in solr ? how people use or check solr performance ? Is there any open source tool or i should create my own for this and how ? Thanks Mugeesh -- View this message in

Could you please add me to this user group

2016-11-07 Thread Raj hadoop
Thanks, Raj

Sort by date? (solr.DateRangeField)

2016-11-07 Thread Georgios Petasis
Dear all, I have defined a field "date_range" as: multiValued="true" indexed="true"/> The field works (and I can perform range queries for these dates). but I have not found a way to sort results based on this field. I have tried with the dist(), ms() functions, to use the boost plugin, etc.

Sort by date? (solr.DateRangeField)

2016-11-07 Thread Georgios Petasis
Dear all, I have defined a field "date_range" as: multiValued="true" indexed="true"/> The field works (and I can perform range queries for these dates). but I have not found a way to sort results based on this field. I have tried with the dist(), ms() functions, to use the boost plugin, etc.

Re: confirm subscribe to solr-user@lucene.apache.org

2016-11-07 Thread Georgios Petasis
On 7/11/2016 13:50, solr-user-h...@lucene.apache.org wrote: Hi! This is the ezmlm program. I'm managing the solr-user@lucene.apache.org mailing list. I'm working for my owner, who can be reached at solr-user-ow...@lucene.apache.org. To confirm that you would like petas...@yahoo.gr added

Re: Custom .... - Web toolkit for developing Solr Client application

2016-11-07 Thread tesm...@gmail.com
Hi, Thanks all for providing help to my previous question. I make my question generic to make it more clear. I have developed index with Lucene/Solr and can search the indexed data using Solr 'browse'. This interface provides some of the functionality for my client application I do understand

Re: Custom user web interface for Solr

2016-11-07 Thread tesm...@gmail.com
Dear Erik, Thanks for your reply. A month wise bar graph of the popularity of a hotel from search results. These graphs will be generated from the search results and will be displayed on an on-demand basis. Regards, On Fri, Nov 4, 2016 at 8:53 PM, Erik Hatcher wrote:

Apache Solr Question

2016-11-07 Thread Chien Nguyen
Hi. Everyone! I've just learned about Apache Solr. I want to create some examples to connect with Solr. Who can help me? Coz i searched and followed some posts but it is always wrong. Tks! -- View this message in context: http://lucene.472066.n3.nabble.com/Apache-Solr-Question-tp4304826.html