problem with tutorial

2014-12-15 Thread Xin Cai
hi Everyone I am a complete noob when it comes to Solr and when I try to follow the tutorial and run Solr I get the error message "Waiting to see Solr listening on port 8983 [-] Still not seeing Solr listening on 8983 after 30 seconds!" I did some googling and all I found was instruction for rem

SolrCloud Collection creation timeout

2014-12-15 Thread Shanaka Munasinghe
Hi All Im using solrcloud 4.10.2 with zookeepr 3.4.6. there are 3 zk servers and 4 solr instances. deployed on weblogic 12c server. zookeeper and solr servers are running without any issue. all 3 zk servers are separate physical servers. i have tested this configuration in locally using virtual

Re: first time user

2014-12-15 Thread Alexandre Rafalovitch
Just test a manual example yourself. Much easier. I am pretty sure Solr can't read your mind which particular semicolon is which use case. Worse though, I can't remember how smart it is about quotes either. Easier to test than to guess. Regards, Alex On 15/12/2014 7:28 pm, "onyourmark" wrot

Re: Is the QueryParser instance thread safe?

2014-12-15 Thread Darin Amos
No problem, I have reviewed this content before except the blogs from McCandless, I will look it over. I think the missing piece here that I did not describe is that I am working with a SOLR instance that is embedded within an already existing enterprise application, and is very tightly coupled wi

Re: Solr join not working for multiple collection in slorCloud env

2014-12-15 Thread Tomoko Uchida
Hi, It's just FYI, Join query is (currently) not supported at distributed environment. It would be same at SolrCloud mode (I have not tried.) Please see "Limitations" notation this page, if you have not. https://wiki.apache.org/solr/Join Thanks, Tomoko 2014-12-16 9:04 GMT+09:00 ArnabK : > > I ha

Solr join not working in slorCloud env

2014-12-15 Thread ArnabK
For Eg: I have 2 shards in solr cloud environment, My query is like http://localhost:8983/solr/B/select?wt=json&indent=true&q=*:*&fq={!join from=id to=uid fromIndex=A}type:xxx Now what happens while retrieving data from collection B the query only searching in the shard which gave data for the j

Re: Nested Facet Solr

2014-12-15 Thread Tomoko Uchida
Hi, This issue might be related to your question. https://issues.apache.org/jira/browse/SOLR-4212 https://issues.apache.org/jira/browse/SOLR-6353 So short answer, currently it's not possible. I cannot come up with good solution with Solr, but you may be able to summing up facet counts returned fro

Re: Solr hangs on distributed updates

2014-12-15 Thread Shalin Shekhar Mangar
On Mon, Dec 15, 2014 at 8:41 PM, Peter Keegan wrote: > > If a timeout occurs, does the distributed update then go to the next > replica? > A distributed update is streamed to all available replicas in parallel. > > On Fri, Dec 12, 2014 at 3:42 PM, Shalin Shekhar Mangar < > shalinman...@gmail.co

Re: first time user

2014-12-15 Thread onyourmark
Hi Alex, thank you for the response and information. In your opinion, data is stored in semicolon delimited files and some of the fields in the data are text and may on occasion have semicolons in them, will it be possible for solr to index the data properly by itself or will I have to use some out

Solr join not working for multiple collection in slorCloud env

2014-12-15 Thread ArnabK
I have the following scenario: Collection A has: Collection B has: http://localhost:8983/solr/B/select?wt=json&indent=true&q=*:*&fq={!join from=id to=uid fromIndex=A}type:xxx Any help? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-join-not-working-for-multi

Re: All documents indexed into the same shard despite different prefix in id field

2014-12-15 Thread Chris Hostetter
: ?I have a SolrCloud cluster with two servers and I created a collection using two shards with this command: ... : There were 230 documents in the set I indexed and there were 3 different prefixes (RM!, WW! and BH!) but all were routed into the same shard. Is there anything I can do to

Re: Is the QueryParser instance thread safe?

2014-12-15 Thread Mikhail Khludnev
Darin, I hardly follows your approach. I can propose you to check a few materials, just to sync terminology and align to the common problem definition. Here is a series of post where colleague of mine defines faceted navigation problem for eCommerce site: http://blog.griddynamics.com/2011/06/solr-e

Re: Is the QueryParser instance thread safe?

2014-12-15 Thread Darin Amos
Hi Mikhail, Sorry for having a few things unclear, I am creating a custom QParser, not QueryParser, that was a slip up. I believe you have answered my question though, and I think I have found a slightly better way to do the code anyway. *Keep reading if curious. I could use some validation tha

Re: Is the QueryParser instance thread safe?

2014-12-15 Thread Mikhail Khludnev
Hello Darin, Let me try to answer below, On Mon, Dec 15, 2014 at 10:38 PM, Darin Amos wrote: > > Hello, > > I have a simple question, is an instance of the QueryParser created for > every single request and is that object thread safe? > QueryParser and QParser are request scope not-thread safe o

Re: Solr hangs on distributed updates

2014-12-15 Thread Peter Keegan
If a timeout occurs, does the distributed update then go to the next replica? On Fri, Dec 12, 2014 at 3:42 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > > Sorry I should have specified. These timeouts go inside the > section and apply for inter-shard update requests only. The socke

Re: Solr hangs on distributed updates

2014-12-15 Thread Peter Keegan
I added distribUpdateConnTimeout and distribUpdateSoTimeout to solr.xml and the commit did timeout.(btw, is there any way to view solr.xml in the admin console?). Also, although we do have an init.d start/stop script for Solr, the 'stop' command was not executed during shutdown because there was n

All documents indexed into the same shard despite different prefix in id field

2014-12-15 Thread Will Miller
?I have a SolrCloud cluster with two servers and I created a collection using two shards with this command: http://server1:8983/admin/collections?action=CREATE&name=products&numShards=2 When I look at clusterstate.json in the Solr admin page I can see the collection is correctly places across

Is the QueryParser instance thread safe?

2014-12-15 Thread Darin Amos
Hello, I have a simple question, is an instance of the QueryParser created for every single request and is that object thread safe? I will try not to get into too much of the specifics but I have a custom QueryParser and Search Component. Within my query parser when it is instantiated, I execu

Re: WordBreakSolrSpellChecker Usage

2014-12-15 Thread Matt Mongeau
I realized I was missing solr.IndexBasedSpellChecker But that didn't really fix my issue either. On Mon, Dec 15, 2014 at 11:22 AM, Matt Mongeau wrote: > > I think you were right about maxChanges, that does seem get rid of the > ridiculous values. However I don't seem to be getting anything reas

Re: Escaping of parametrized queries {v=$q}

2014-12-15 Thread Doug Turnbull
Good idea. That's cleaner than my current solution (hack up a query parser). I'll try it out and report back. -Doug On Mon, Dec 15, 2014 at 12:04 PM, Alexandre Rafalovitch wrote: > > How about a pre-pended search component to un-escape Q and put it into > QClean or some such. Then, your other pa

Re: Get groups which has the number of elements greater than...

2014-12-15 Thread andreic9203
Hello lboutros, That's the solution that I read about it, but I didn't tested yet. Probably tomorrow. I'll let you know if it works for me, but from what I've seen, seems to be exactly what I need. Thank you for your answer, Andrei -- View this message in context: http://lucene.472066.n3.nabb

Re: Get groups which has the number of elements greater than...

2014-12-15 Thread lboutros
To me, it seems you are looking for faceting with the parameter facet.mincount: facet=true&facet.field=groupField&facet.mincount=yourMinimumValue. Ludovic. - Jouve France. -- View this message in context: http://lucene.472066.n3.nabble.com/Get-groups-which-has-the-number-of-elements-great

Re: Escaping of parametrized queries {v=$q}

2014-12-15 Thread Alexandre Rafalovitch
How about a pre-pended search component to un-escape Q and put it into QClean or some such. Then, your other parsers could use the other variable name as needed? Would that work? Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resources and newsletter: http://www.solr

Re: WordBreakSolrSpellChecker Usage

2014-12-15 Thread Matt Mongeau
I think you were right about maxChanges, that does seem get rid of the ridiculous values. However I don't seem to be getting anything reasonable. Most variations look something like: http://localhost:8982/solr/development/select?q=Rock+point&fq=type%3ACompany&wt=ruby&indent=true&defType=edismax&qf

Escaping of parametrized queries {v=$q}

2014-12-15 Thread Doug Turnbull
Hello all, I've been working on a search project that has a lot of special characters in text (its programming language content). We use edismax as a base query parser, but will use other query parsers in boost queries (such as field or a custom query parser). For example, we might have q=c\+\+&

Re: My new lemmatizer interfers with the highlighter

2014-12-15 Thread Ahmet Arslan
Hi Erlend, I have written a similar token filter. Please see : https://github.com/iorixxx/lucene-solr-analysis-turkish/blob/master/src/main/java/org/apache/lucene/analysis/tr/Zemberek2DeasciifyFilterFactory.java replace final String[] values = stemmer.stem(tokenTerm); with stack = stemmer.s

Re: My new lemmatizer interfers with the highlighter

2014-12-15 Thread Michael Sokolov
Well I think your first step should be finding a reproducible test case and encoding it as a unit test. But I suspect ultimately the fix will be something to do with positionIncrement ... -Mike On 12/15/2014 09:08 AM, Erlend Garåsen wrote: On 15.12.14 14:11, Michael Sokolov wrote: I'm not s

Get groups which has the number of elements greater than...

2014-12-15 Thread andreic9203
Hello, I have a query which group my documents based on a field. The returned groups could have any number of documents. If you take a look to one of the groups, you'll see something like: "groupValue": "", "doclist": { *"numFound": 3,* "start": 0, "d

Re: My new lemmatizer interfers with the highlighter

2014-12-15 Thread Erlend Garåsen
On 15.12.14 14:11, Michael Sokolov wrote: I'm not sure, but is it necessary to set positionIncAttr to 1 when there are *not* any lemmas found? I think the usual pattern is to call clearAttributes() at the start of incrementToken It is set to 0 only if there are stems/lemmas found: if (!terms.i

Re: My new lemmatizer interfers with the highlighter

2014-12-15 Thread Michael Sokolov
I'm not sure, but is it necessary to set positionIncAttr to 1 when there are *not* any lemmas found? I think the usual pattern is to call clearAttributes() at the start of incrementToken -Mike On 12/15/14 7:38 AM, Erlend Garåsen wrote: I have written a dictionary-based lemmatizer for Universi

My new lemmatizer interfers with the highlighter

2014-12-15 Thread Erlend Garåsen
I have written a dictionary-based lemmatizer for University of Oslo which I also want to donate back to Apache. Before I do that, I need some help to figure out why it interferes with the highlighter. Some totally irrelevant words get highlighted, so there is something strange going on. It does

Nested Facet Solr

2014-12-15 Thread Ankit Jain
Hi, I want to nested facet inside the range facet. Please help.. Thanks, Ankit Jain

How to track UpdateRequestHandler activities?

2014-12-15 Thread solr2020
Hi, We are doing data update using solrj.First we are deleting the records that needs to be updated and inserting them again with the updated value.Sometimes this updates fails and we don't have any clue where it stuck.So we want to track the UpdateRequestHandler activities something like in a se

RE: To understand SolrCloud configurations

2014-12-15 Thread steve
+1 > Date: Mon, 15 Dec 2014 21:44:44 +1300 > Subject: Re: To understand SolrCloud configurations > From: esj.f...@gmail.com > To: solr-user@lucene.apache.org > > HI Shawn, > > Thanks, You have answered my question to a certain extend, But I wanted to > Isolate Solr Cloud from application and do

Re: To understand SolrCloud configurations

2014-12-15 Thread E S J
HI Shawn, Thanks, You have answered my question to a certain extend, But I wanted to Isolate Solr Cloud from application and do some load testing by setting up Jmeter Script. I could hit Solr instances, but it will not simulate how Application (Client) will deal with Solr Cloud. Any suggestions fo