Re: Schema API synchronization question

2014-09-02 Thread Matthias Broecheler
Yes, that is what we are seeing. Thanks for pointing me to the right issues to track. Where can I find out when 4.10 final is going to be released? Thanks, Matthias On Sat, Aug 30, 2014 at 9:26 PM, Erick Erickson wrote: > There have been some recent improvements in that area, what version of S

Error while adding copy fields to a schema

2014-09-02 Thread Hokam Singh Chauhan
Hi, I have an requirement in which I have to add some fields in schema at run time and after that i need to add the copy fields for some of the schema fields. To add the fields in schema I used the following REST API, which is giving success response in output as shown below: *Post URL: *http://

Re: How can I set shard members?

2014-09-02 Thread Erick Erickson
Take a look here: http://heliosearch.org/solrcloud-assigning-nodes-machines/ If you really, really, really require that shard1 be on server1 and _not_ server 3 I'm not quite sure how you'd do it. But if you want your leaders on servers 1 and 3, just use the nodeset. (Jürgen beat me to it!). Best

Re: How can I set shard members?

2014-09-02 Thread Jürgen Wagner (DVT)
Hello, have you tried the "createNodeSet" option of collection/shard creation and the "node" option of replica creation in Solr 4.9.0+? As you're just testing, I would strongly recommend going to the latest version. https://cwiki.apache.org/confluence/display/solr/Collections+API This is useful

How can I set shard members?

2014-09-02 Thread Lee Chunki
Hi, I am trying to test Solr Cloud with version 4.1.0. ( http://wiki.apache.org/solr/SolrCloud#Example_C:_Two_shard_cluster_with_shard_replicas_and_zookeeper_ensemble ) Is there any way set shard & shard member ? for example. server1, server2 for shard1 server3, server4 for shard2 when I tes

Re: WordDelimiter filter, expanding to multiple words, unexpected results

2014-09-02 Thread Diego Fernandez
Although not a solution, this may help in trying to find the problem. In http://solr.pl/en/2010/08/16/what-is-schema-xml/ it says: "It is worth noting that there is an additional attribute for the text field type: autoGeneratePhraseQueries This attribute is responsible for telling filters h

Re: WordDelimiter filter, expanding to multiple words, unexpected results

2014-09-02 Thread Erick Erickson
What happens if you append &debug=query to your query? IOW, what does the _parsed_ query look like? Also note that the defaults for WDFF are _not_ identical. catenateWords and catenateNumbers are 1 in the index portion and 0 in the query section. Still, this shouldn't be a problem all other things

Re: WordDelimiter filter, expanding to multiple words, unexpected results

2014-09-02 Thread Jonathan Rochkind
On 9/2/14 1:51 PM, Erick Erickson wrote: bq: In my actual index, query "MacBook" is matching ONLY "mac book", and not "macbook" I suspect your query parameters for WordDelimiterFilterFactory doesn't have catenate words set. What do you see when you enter these in both the index and query portio

Solr 4.1.0 Compatibility with zookeeper 3.4.5

2014-09-02 Thread Shivam Bajpai
Hello, I'm using solr 4.1.0 with zookeeper 3.3.6 and need to update to zookeeper 3.4.5 . I would like to make sure if solr 4.1.0 is compatible with zookeeper 3.4.5 or if there are any precautions should I take before up-gradation. -- Best Regards, Shivam Bajpai DevOps Engineer StackExpress

Re: HTTPS for SolrCloud

2014-09-02 Thread Christopher Gross
Is the solr.ssl.checkPeerName option available in 4.8.1? I have my Tomcat starting up with that as a -D option, but I'm getting an exception on validating the hostname w/ the cert... -- Chris On Tue, Sep 2, 2014 at 1:44 PM, Christopher Gross wrote: > OK -- so I think my previous attempts were

RE: Solr spellcheck returns more than 1 word for a 1 word spellcheck

2014-09-02 Thread Dyer, James
This is the WordBreakSolrSpellChecker, which is there to correct spelling errors involving misplaced whitespace (or is it white space ??) To disable it, remove this or similar line from your requestHandler in solrconfig.xml: wordbreak Keep in mind, if you want the best of both worlds, you can

Re: WordDelimiter filter, expanding to multiple words, unexpected results

2014-09-02 Thread Erick Erickson
bq: In my actual index, query "MacBook" is matching ONLY "mac book", and not "macbook" I suspect your query parameters for WordDelimiterFilterFactory doesn't have catenate words set. What do you see when you enter these in both the index and query portions of the admin/analysis page? Best, Erick

Re: WordDelimiter filter, expanding to multiple words, unexpected results

2014-09-02 Thread Jonathan Rochkind
Yes, thanks, I realize I can twiddle those parameters, but it will probably result in "MacBook" no longer matching "mac book" at all, but ONLY matching "macbook". My understanding of the default settings of WordDelimiterFactory is that they are intending for "MacBook" to match both "mac book"

Re: HTTPS for SolrCloud

2014-09-02 Thread Christopher Gross
OK -- so I think my previous attempts were causing the problem. Since this is a dev environment (and is still empty), I just went ahead and wiped out the "version-2" directories for the zookeeper nodes, reloaded my solr collections, then ran that command (zkcli.sh in the solr distro). That did work

Re: WordDelimiter filter, expanding to multiple words, unexpected results

2014-09-02 Thread Michael Della Bitta
If that's your problem, I bet all you have to do is twiddle on one of the catenate options, either catenateWords or catenateAll. Michael Della Bitta Applications Developer o: +1 646 532 3062 appinions inc. “The Science of Influence Marketing” 18 East 41st Street New York, NY 10017 t: @appin

Re: HTTPS for SolrCloud

2014-09-02 Thread Chris Hostetter
: ./zkcli.sh -zkhost localhost:2181 -cmd put /clusterprops.json : '{"urlScheme":"https"}' ... : Next I start Tomcat, I get this: : 482 [localhost-startStop-1] ERROR org.apache.solr.core.SolrCore â : null:org.noggit.JSONParser$ParseException: JSON Parse Error: : char=',position=0 BEFORE='

Re: WordDelimiter filter, expanding to multiple words, unexpected results

2014-09-02 Thread Jonathan Rochkind
Thanks for the response. I understand the problem a little bit better after investigating more. Posting my full field definitions is, I think, going to be confusing, as they are long and complicated. I can narrow it down to an isolation case if I need to. My indexed field in question is relati

Re: WordDelimiter filter, expanding to multiple words, unexpected results

2014-09-02 Thread Michael Della Bitta
Hi Jonathan, Little confused by this line: > And, what I think it's trying to do, is match text indexed as "d elalain" as well as text indexed by "delalain". In this case, I don't know how WordDelimiterFilter will help, as you're likely tokenizing on spaces somewhere, and that input text has a s

Re: Search on specific shard

2014-09-02 Thread Anshum Gupta
Hi Ankit, The following blog posts should help you understand composite-id routing in SolrCloud better. http://searchhub.org/2013/06/13/solr-cloud-document-routing/ A more complicated use case (multi-level routing) : http://searchhub.org/2014/01/06/10590/ On Tue, Sep 2, 2014 at 6:38 AM, Ankit

WordDelimiter filter, expanding to multiple words, unexpected results

2014-09-02 Thread Jonathan Rochkind
Hello, I'm running into a case where a query is not returning the results I expect, and I'm hoping someone can offer some explanation that might help me fine tune things or understand what's up. I am running Solr 4.3. My filter chain includes a WordDelimiterFilter and, later a filter that dow

Re: HTTPS for SolrCloud

2014-09-02 Thread Christopher Gross
Side note -- I've also tried adding the clusterprops.json file via zookeeper's shell client on the command line, and within that client, all with no luck. -- Chris On Tue, Sep 2, 2014 at 12:19 PM, Christopher Gross wrote: > Hi Hoss. > > I did finally stumble onto that document (just after I po

Re: HTTPS for SolrCloud

2014-09-02 Thread Christopher Gross
Hi Hoss. I did finally stumble onto that document (just after I posted my last message, of course). Using bash shell. I've now tried those steps: Tomcat is stopped. First I run: ./zkcli.sh -zkhost localhost:2181 -cmd put /clusterprops.json '{"urlScheme":"https"}' I confirm via the zookeeper-pr

Re: HTTPS for SolrCloud

2014-09-02 Thread Chris Hostetter
First question: ignoring the oiginal jira (which may be out of date due to later improvements) have you seen the instructions? https://cwiki.apache.org/confluence/display/solr/Enabling+SSL#EnablingSSL-SolrCloud : I always get a message like this: : Caused by: org.noggit.JSONParser$ParseExcepti

Re: HTTPS for SolrCloud

2014-09-02 Thread Christopher Gross
Getting closer. I can at least get the file to be there, but I can't figure out what to put into it. I make a "clusterprops.json" file, and its had: { "urlScheme": "https" } { \"urlScheme\": \"https\" } { \\"urlScheme\\": \\"https\\" } Which gets loaded in like this: ./zkCli.sh -zkhost localhost:

Re: Date field related query

2014-09-02 Thread Aman Tandon
Thanks Erick :) With Regards Aman Tandon On Tue, Sep 2, 2014 at 8:28 PM, Erick Erickson wrote: > Hmmm, not quite, I think you meant: > > datefield:[NOW/DAY TO NOW/DAY+1DAY] > > You're particularly interested in using date math if > if you use these in filter query clauses, see: > http://search

Re: Date field related query

2014-09-02 Thread Erick Erickson
Hmmm, not quite, I think you meant: datefield:[NOW/DAY TO NOW/DAY+1DAY] You're particularly interested in using date math if if you use these in filter query clauses, see: http://searchhub.org/2012/02/23/date-math-now-and-filter-queries/ Best, Erick On Tue, Sep 2, 2014 at 3:59 AM, François Sch

Re: Solr Data Routing

2014-09-02 Thread Erick Erickson
Here's another link: http://searchhub.org/2013/06/13/solr-cloud-document-routing/ I have to ask why you want to do this? If you want to put docs in a particular shard yourself, you have to be very careful that you're not shooting yourself in the foot. Not saying it's a bad idea, but this may be a

Re: Solr source code

2014-09-02 Thread Shawn Heisey
On 9/2/2014 8:27 AM, Shay Sofer wrote: > What is the process regarding modify Solr source code (legal part)? > > In addition, who should I update for this bug and fix so Solr team will > consider using it. The Lucene/Solr project is licensed under the Apache License, version 2.0. http://www.apac

Solr source code

2014-09-02 Thread Shay Sofer
Hi, What is the process regarding modify Solr source code (legal part)? In addition, who should I update for this bug and fix so Solr team will consider using it. Thanks, Shay.

Search on specific shard

2014-09-02 Thread Ankit Jain
Hi All, I am using below piece of code to route a data on the basis of user field. The data of user1 is going on one shard and data of user2 is going on another shard. try { String zkHostString = "127.0.0.1:2181"; CloudSolrServer cloudSolrServer = new CloudSolrServer(zkHos

HTTPS for SolrCloud

2014-09-02 Thread Christopher Gross
Solr 4.8.1 Java 1.7 Tomcat 7.0.50 Zookeeper 3.4.6 Trying to get a SolrCloud running with https only. I found this: https://issues.apache.org/jira/browse/SOLR-3854 I don't have a clusterprops.json file, and running the zkCli command doesn't add one either. Command is along the lines of: ./zkCli.s

Re: Date field related query

2014-09-02 Thread François Schiettecatte
How about : datefield:[NOW-1DAY/DAY TO *] François On Sep 2, 2014, at 6:54 AM, Aman Tandon wrote: > Hi, > > I did it using this, fq=datefield:[2014-09-01T23:59:59Z TO > 2014-09-02T23:59:59Z]. > Correct me if i am wrong. > > Is there any way to find this using the NOW? > > > With Re

Re: Date field related query

2014-09-02 Thread Aman Tandon
Hi, I did it using this, fq=datefield:[2014-09-01T23:59:59Z TO 2014-09-02T23:59:59Z]. Correct me if i am wrong. Is there any way to find this using the NOW? With Regards Aman Tandon On Tue, Sep 2, 2014 at 4:08 PM, Aman Tandon wrote: > Hi, > > I am working on date and i want to find all thos

Date field related query

2014-09-02 Thread Aman Tandon
Hi, I am working on date and i want to find all those records which are indexed today. With Regards Aman Tandon

Re: Help with StopFilterFactory

2014-09-02 Thread heaven
Jira issue: https://issues.apache.org/jira/browse/SOLR-6468 -- View this message in context: http://lucene.472066.n3.nabble.com/Help-with-StopFilterFactory-tp4153839p4156373.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr Data Routing

2014-09-02 Thread Himanshu Mehrotra
Hi, You can use multi level compositeId routing in solr cloud. Read through the following link http://searchhub.org/2014/01/06/10590/ it should help. Thanks, Himanshu On Tue, Sep 2, 2014 at 1:25 PM, Ankit Jain wrote: > Hi All, > > I want to route data into shards depends on value of input c

Solr Data Routing

2014-09-02 Thread Ankit Jain
Hi All, I want to route data into shards depends on value of input column. For example: I am getting user data and want to store data of user1 on shard1 and user2 on shard2 and so on. Can you please let me know, how we can achieve the above scenario in Solr. -- Thanks, Ankit Jain