Re: SolrCloud: data is present on one shard only

2015-03-17 Thread Aman Tandon
please help.. With Regards Aman Tandon On Tue, Mar 17, 2015 at 3:24 PM, Aman Tandon wrote: > Hi, > > I indexed the data in my SolrCoud architecture (2 shards present on 2 > separate instance & on one instance I have the replica of both the shards > which is present on other 2 instance). > > And

Add replica on shards

2015-03-17 Thread Nitin Solanki
Hi, I have created 8 shards on a collection named as ***wikingram**. Now at that time, I were not created any replica. Now, I want to add a replica on each shard. How can I do? I created this - ** sudo curl http://localhost:8983/solr/admin/collections?action=ADDREPLICA&collection=wikingram

Re: Solr returns incorrect results after sorting

2015-03-17 Thread kumarraj
Hi Jim, Yes, you are right.. that document is having price 499.99, But i want to consider the first record in the group as part of the main sort. Even though if i add price asc in the group.sort, but still the main sort does not consider that. group.sort=max(if(exists(query({!v='storeName_string:2

Re: copy field from boolean to int

2015-03-17 Thread William Bell
Can you reindex? Just use 1,0. On Tue, Mar 17, 2015 at 6:08 PM, Chris Hostetter wrote: > > Can you open a jira to add docValues support for BoolField? ... i can't > think of any good reason not to directly support that in Solr for > BoolField ... seems like just an oversight that slipped through

Re: Using physical schema.xml (ClassicIndexSchemaFactory) in Solr 5.0

2015-03-17 Thread Zheng Lin Edwin Yeo
Hi Alex, Thanks for the information. The file got indexed correctly according to the physical schema.xml when I use the conf from the techproducts example. Regards, Edwin On 17 March 2015 at 21:56, Alexandre Rafalovitch wrote: > You might be better off starting with techproducts example inste

Re: copy field from boolean to int

2015-03-17 Thread Chris Hostetter
Can you open a jira to add docValues support for BoolField? ... i can't think of any good reason not to directly support that in Solr for BoolField ... seems like just an oversight that slipped through the cracks. For now, your best bet is probably to use an UpdateProcessor ... maybe 2 insta

copy field from boolean to int

2015-03-17 Thread Kevin Osborn
I was hoping to use DocValues, but one of my fields is a boolean, which is not currently supported by DocValues. I can use a copyField to convert my boolean to a string. Is there is anyway to use a copyField to convert from a boolean to a tint?

Securing JettySolrRunner

2015-03-17 Thread Furkan KAMACI
Hi All, Why we can not set setUserRealms for JettySolrRunner? I want to test secured SolrServer at another project and I want to run JettySolrRunner. I do not want to use an external config file for my test purposed jetty (if you have an advice you are welcome). Here is an example what I want to a

Re: Solr tlog and soft commit

2015-03-17 Thread Shalin Shekhar Mangar
When you issue an atomic update request, Solr needs to lookup the stored fields of the last document that you have added, process it according to your atomic update and then index that document again (replacing the old one). If you send an atomic update request before the old document was committe

Re[4]: discrepancy between LuceneQParser and ExtendedDismaxQParser

2015-03-17 Thread Arsen
Hello Jack, 4.10.3 as already indicated in https://issues.apache.org/jira/browse/SOLR-7249 > Great, glad to hear it! > One last question: What release of Solr are you using? > -- Jack Krupansky > On Tue, Mar 17, 2015 at 11:43 AM, Arsen wrote: >> Hello Jack, >> >> Jack, you made "my day" for

Re: Re[2]: discrepancy between LuceneQParser and ExtendedDismaxQParser

2015-03-17 Thread Jack Krupansky
Great, glad to hear it! One last question: What release of Solr are you using? -- Jack Krupansky On Tue, Mar 17, 2015 at 11:43 AM, Arsen wrote: > Hello Jack, > > Jack, you made "my day" for me. > > Indeed, when I inserted space between "(" and "*:*" sings - issue > disappeared. I believe, that

Re: Re[2]: discrepancy between LuceneQParser and ExtendedDismaxQParser

2015-03-17 Thread Erick Erickson
Hmmm, the JIRA I found (SOLR-3377) has been fixed since 4.0-BETA, so I don't think closing this is in order. I've added a comment... Erick On Tue, Mar 17, 2015 at 8:43 AM, Arsen wrote: > Hello Jack, > > Jack, you made "my day" for me. > > Indeed, when I inserted space between "(" and "*:*" sings

Re: When does SolrJ client add isShard=true automatically to the query

2015-03-17 Thread Shawn Heisey
On 3/17/2015 10:36 AM, pramodEbay wrote: > We are using 3 shard solr cloud with 5 replicas per shard. We use SolrJ to > execute solr queries. Often times, I cannot explain when, but we see in the > query, isShard=true and shard.url=. > > My questions are, > > 1. Why does this happen intermitten

Re: Solr tlog and soft commit

2015-03-17 Thread vidit.asthana
Should I open a JIRA, in case there is no explanation of why all of a sudden transaction logs start piling up for some shard/replica? I have provided very detailed explanation in a different thread: http://lucene.472066.n3.nabble.com/Transaction-logs-not-getting-deleted-td4184635.html Also can s

Shards doesn't seems to give same suggestion of a term/ misspell term.

2015-03-17 Thread Nitin Solanki
Hi everyone, I have stuck in a big issue. First I will explain what I am doing. I am creating a spell correction using Solr where I have indexed 21GB of data and used sharding/ distributed search. I have created 4 nodes having 8 shards without any replica. When I search a term, I got s

Re: Which one is it "cs" or "cz" for Czech language?

2015-03-17 Thread Mike Drob
Probably a historical artifact. cz is the country code for the Czech Republic, cs is the language code for Czech. Once, cs was also the country code for Czechosolvakia, leading some folks to accidentally conflate the two. On Tue, Mar 17, 2015 at 12:35 PM, Eduard Moraru wrote: > Hi, > > First of

Which one is it "cs" or "cz" for Czech language?

2015-03-17 Thread Eduard Moraru
Hi, First of all, a bit of a disclaimer: I am not a Czech language speaker, at all. We are using Solr's dynamic fields in our project (XWiki), and we have recently noticed a problem [1] with the Czech language. Basically, our mapping says something like this: ...but at runtime, we ask for the

Re: When does SolrJ client add isShard=true automatically to the query

2015-03-17 Thread Chris Hostetter
: We are using 3 shard solr cloud with 5 replicas per shard. We use SolrJ to : execute solr queries. Often times, I cannot explain when, but we see in the : query, isShard=true and shard.url=. what does "see in the query" mean? ... see where? what are you looking at? define "use SolrJ" ? what

Re: How to configure Solr to use ZooKeeper ACLs in order to protect it's content

2015-03-17 Thread Dmitry Karanfilov
Sorry, this is CORRECT: SOLR_ZK_PROVIDERS="-DzkCredentialsProvider=org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider \ -DzkACLProvider=org.apache.solr.common.cloud.VMParamsAllAndReadonlyDigestZkACLProvider" SOLR_ZK_CREDS_AND_ACLS="-DzkDigestUsername=admin-user -D

Re: Solr returns incorrect results after sorting

2015-03-17 Thread jim ferenczi
Hi, Please note that you have two sort criteria, one to sort the documents inside each group and one to sort the groups. In the example you sent, the group 10002 has two documents and your group.limit is set to 1. If you redo the query with group.limit=2 I suspect that you'll see the second documen

Re: How to configure Solr to use ZooKeeper ACLs in order to protect it's content

2015-03-17 Thread Dmitry Karanfilov
I found the issue - it is in documentation: WRONG: SOLR_ZK_PROVIDERS="-DdefaultZkCredentialsProvider=org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider \ -DdefaultZkACLProvider=org.apache.solr.common.cloud.VMParamsAllAndReadonlyDigestZkACLProvider" SOLR_ZK_CREDS_

When does SolrJ client add isShard=true automatically to the query

2015-03-17 Thread pramodEbay
Hi all, We are using 3 shard solr cloud with 5 replicas per shard. We use SolrJ to execute solr queries. Often times, I cannot explain when, but we see in the query, isShard=true and shard.url=. My questions are, 1. Why does this happen intermittently 2. When this happens, will it send reques

Re: Non-Schemaless configuration in solr 5.0

2015-03-17 Thread Dikshant Shahi
You can create core as follows: solr create -c "corename" -d sample_techproducts_configs This will create a core with full features of Solr. You can refer to examples there and modify it as per your need. - Dikshant On Tue, Mar 17, 2015 at 9:38 PM, itzikgili wrote: > > I'm trying to implement

Non-Schemaless configuration in solr 5.0

2015-03-17 Thread itzikgili
I'm trying to implement an autocomplete solution for my website. After using solr 5.0 with the examples provided in it, I wanted to test it with my own configuration. Using *solr start * and then *solr create -c "corename" * Created a core , as asked. It's seems like now, solr is

Re[2]: discrepancy between LuceneQParser and ExtendedDismaxQParser

2015-03-17 Thread Arsen
Hello Jack, Jack, you made "my day" for me. Indeed, when I inserted space between "(" and "*:*" sings - issue disappeared. I believe, that according to debug - "space" bug forced both parsers to treat part in first brackets as text, right? It looks like https://issues.apache.org/jira/browse/SOLR

How to configure Solr to use ZooKeeper ACLs in order to protect it's content

2015-03-17 Thread Dmitry Karanfilov
Hi, I'm trying to configure Solr to use ZooKeeper ACLs as it is described on this wiki page https://cwiki.apache.org/confluence/display/solr/ZooKeeper+Access+Control, but I have no luck. Do I understand correctly that in order to tell Solr about the credentials required to access the content in

Re: Using physical schema.xml (ClassicIndexSchemaFactory) in Solr 5.0

2015-03-17 Thread Alexandre Rafalovitch
You might be better off starting with techproducts example instead of schemaless, if physical schema is what you actually want. You are probably hitting an issue with UpdateRequestProcessor chain that tries to automatically create fields. Regards, Alex. Solr Analyzers, Tokenizers, Filters

Re: Want to modify Solr Source Code

2015-03-17 Thread Andrea Gazzarini
Hi, if you followed what is written in the link that Gora suggested, you should have a workspace without errors. Eclipse compiler allows for incremental builds, that is, all code is incrementally compiled as soon as you finish typing. So if you inserted those lines and you don't see any error

Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi all, How to set breakpoints throughout the Solr code, step through code ? On Tue, Mar 17, 2015 at 6:22 PM, Nitin Solanki wrote: > Hi all, >I have configured solr source code with eclipse. Now, I have > written a print statement in between the SolrSpellChecker.java. Now,

Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi all, I have configured solr source code with eclipse. Now, I have written a print statement in between the SolrSpellChecker.java. Now, I want to compile this file. How to do that ? Any help please... On Tue, Mar 17, 2015 at 2:27 PM, Gora Mohanty wrote: > On 17 March 2015 at 13:38,

RE: Select and Update after with DataImportHandler

2015-03-17 Thread Gabi
Yes, that's the point Steve. In a full-import from the UI of Solr a select defined in configuration file data-config.xml is executed. This select retrieves the fields indexed as defined in this config file and schema.xml. But what I try to do is to execute this select and update a field of one of

error is showing in Zookeerper log

2015-03-17 Thread Aman Tandon
Hi, I am getting this type of error in zookeeper logs, is it okay? 2015-03-17 15:33:57,034 [myid:3] - INFO [ProcessThread(sid:3 > cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException > when processing sessionid:0x14c26db15480001 type:delete cxid:0x35 > zxid:0x70108 txntype:-

SolrCloud: data is present on one shard only

2015-03-17 Thread Aman Tandon
Hi, I indexed the data in my SolrCoud architecture (2 shards present on 2 separate instance & on one instance I have the replica of both the shards which is present on other 2 instance). And when I am looking at the index via admin interface, it is present on a single instance. Isn't the data sh

RE: Select and Update after with DataImportHandler

2015-03-17 Thread steve
Hi, maybe I'm missing the point here, but there could be a separate table/database that has a record inserted after the full import is completed; this could be part of the same "batch" or script file, or one that is "chained" after the original query completes. > From: g...@idieikon.com > To: s

Re: Want to modify Solr Source Code

2015-03-17 Thread Gora Mohanty
On 17 March 2015 at 13:38, Nitin Solanki wrote: > Hi Gora, > Thanks again. Do you have any link/ article of Wiki article? > Please send me. Sent the link in my very first follow-up: http://wiki.apache.org/solr/HowToContribute#Contributing_Code_.28Features.2C_Bug_Fixes.2C_Tests.2C_etc

Select and Update after with DataImportHandler

2015-03-17 Thread Gabi
Hello, we have a sql to retrieve fields from DB and they are indexed in a full-import defined in a data-config.xml. It works as expected but now we want to update the database fields so we know when data was imported. So we add to the table being indexed a timestamp. Now we have table1 field1 f

Re: Solr returns incorrect results after sorting

2015-03-17 Thread kumarraj
Thanks David, that was a typo. Do you see any other issues? While solr does the grouping and if more than one document which are matched with given group.sort condition(numfound=2), then that particular document is not sorted correctly, when sorted by price.(sort=price) is applied across all the gr

Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi Gora, Thanks again. Do you have any link/ article of Wiki article? Please send me. On Tue, Mar 17, 2015 at 1:30 PM, Gora Mohanty wrote: > On 17 March 2015 at 13:21, Nitin Solanki wrote: > > > I have already downloaded > > http://archive.apache.org/dist/lucene/solr/4.10.2/solr-4.

Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi Anshum, The reason behind to edit source code is that I am using spell check component on solr. I have implemented it and it is working fine.. But something suggestion frequency goes vary. I have explain that it into this - http://stackoverflow.com/questions/28857915/original-f

Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi Ramkumar, Sorry but svn will create cumbersome for me and I don't want to use it right now. I want to do anything on local machine without using svn. As you said to download -src.tgz. I have download solr-4.10.2-src.tar.gz. Now able to see source code. Now how to configure i

Re: Want to modify Solr Source Code

2015-03-17 Thread Gora Mohanty
On 17 March 2015 at 13:21, Nitin Solanki wrote: > I have already downloaded > http://archive.apache.org/dist/lucene/solr/4.10.2/solr-4.10.2.tgz. Now, > How > to view or edit the source code of any file? I don't have any idea about > it.. Your help is appreciated.. > Please guide my step by step..

Re: Want to modify Solr Source Code

2015-03-17 Thread Anshum Gupta
Hi Nitin, Do you intend to browse the code? If you really want to modify the code, can you tell us about what exactly is it that you're trying to achieve? Can you clarify on how you want to test Solr? If so, do you plan on running the tests that Solr ships with or do you have your own tests? All

Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
I have already downloaded http://archive.apache.org/dist/lucene/solr/4.10.2/solr-4.10.2.tgz. Now, How to view or edit the source code of any file? I don't have any idea about it.. Your help is appreciated.. Please guide my step by step.. Thanks again.. On Tue, Mar 17, 2015 at 1:16 PM, Gora Mohant

Re: Want to modify Solr Source Code

2015-03-17 Thread Ramkumar R. Aiyengar
Is your concern that you want to be able to modify source code just on your machine or that you can't for some reason install svn? If it's the former, even if you checkout using svn, you can't modify anything outside the machine as changes can be checked in only by the committers of the project.

Re: Want to modify Solr Source Code

2015-03-17 Thread Gora Mohanty
On 17 March 2015 at 13:12, Nitin Solanki wrote: > Hi Gora, >Hi, I want to make changes only into my machine without svn. > I want to do test on source code. How ? Any steps to do so ? Please help.. You could still use SVN for a local repository. Else, you can download a tar.gz of

Re: Want to modify Solr Source Code

2015-03-17 Thread Nitin Solanki
Hi Gora, Hi, I want to make changes only into my machine without svn. I want to do test on source code. How ? Any steps to do so ? Please help.. On Tue, Mar 17, 2015 at 1:01 PM, Gora Mohanty wrote: > On 17 March 2015 at 12:22, Nitin Solanki wrote: > > > > Hi, > > I want

Re: Want to modify Solr Source Code

2015-03-17 Thread Gora Mohanty
On 17 March 2015 at 12:22, Nitin Solanki wrote: > > Hi, > I want to modify the solr source code. I don't have any idea where > source code is available. I want to edit source code. How can I do ? > Any help please... Please start with: http://wiki.apache.org/solr/HowToContribute#Contribu

Using physical schema.xml (ClassicIndexSchemaFactory) in Solr 5.0

2015-03-17 Thread Zheng Lin Edwin Yeo
Hi everyone, I've changed from the default schemaFactory class="ManagedIndexSchemaFactory" to using the ClassicIndexSchemaFactory. However, I'm getting the exception on *org.apache.solr.common.SolrException: This IndexSchema is not mutable*, when I try to do the indexing. Is there other settings

Re: Unable to find query result in solr 5.0.0

2015-03-17 Thread rupak
Hi Erick , Good to see your interest.Actually We are very new to Solr and we are working on a project which was previously made on solr 1.3. When we are going to search any query we are getting all results accordingly. but now if we are going to find any data we are getting nothing. Here I have