Re: Got a 404 trying to update a solr. 6.5.1 server. /solr/update not found.

2017-06-05 Thread Tomas Fernandez Lobbe
I think you are missing the collection name in the path. Tomás Sent from my iPhone > On Jun 5, 2017, at 9:08 PM, Phil Scadden wrote: > > Simple piece of code. Had been working earlier (though against a 6.4.2 > instance). > > ConcurrentUpdateSolrClient solr = new > ConcurrentUpdateSolrC

Got a 404 trying to update a solr. 6.5.1 server. /solr/update not found.

2017-06-05 Thread Phil Scadden
Simple piece of code. Had been working earlier (though against a 6.4.2 instance). ConcurrentUpdateSolrClient solr = new ConcurrentUpdateSolrClient("http://myhost:8983/solr",10,2); try { solr.deleteByQuery("*:*"); solr.commit(); } catch (SolrServerExcep

Re: Why do Solr nodes go into Recovery status

2017-06-05 Thread Erick Erickson
bq: This means that technically the replica nodes should not fall behind and do not have to go into recovery mode Well, true if nothing weird happens. By "weird" I mean anything that interferes with the leader getting anything other than a success code back from a follower it sends document to.

Java bigdecimal equivalent field type in solr

2017-06-05 Thread Lasitha Wattaladeniya
Hi devs, Can you please help me to identify what is the java bigdecimal equivalent field type in solr. Currently I was indexing the float value of the bigdecimal to a *_f field. But it looses precision when I call the Bigdecimal.floatValue() method Regards, Lasitha

Why do Solr nodes go into Recovery status

2017-06-05 Thread suresh pendap
Hi, Why and in what scenarios do Solr nodes go into recovery status? Given that Solr is a CP system it means that the writes for a Document index are acknowledged only after they are propagated and acknowledged by all the replicas of the Shard. This means that technically the replica nodes shoul

Taking Solr 6.5.x to production.

2017-06-05 Thread Nawab Zada Asad Iqbal
Hi solr community What are the steps for taking solr to production if Solr installation script does not support my environment. Is there a list of all the steps done by the Installation script so that I can do them manually? I am upgrading from 4.5.0; and today we compile our solr custom code (t

Re: Steps for building solr/lucene code and starting server

2017-06-05 Thread Nawab Zada Asad Iqbal
Thanks Erick I ended up including my files in solr/webapp/build.xml under "dist" target (which is also called by "server" target in solr folder). I used fileset instead of lib not sure about the pros and cons. Now I am able to run my server using 'bin/solr' with my custom config files. On Fri,

Re: Solr collections Async status is nearly useless

2017-06-05 Thread Webster Homer
So I figured out that the binary format is the serialized version of the org.apache.solr.cloud.OverseerSolrResponse class. However, this class isn't in solrj so I'm not sure how I can deserialize its contents. This looks like a poor choice by a developer to not have this in the Solrj library. On M

Re: Upgrading config from 4.5.0 to 6.5.1

2017-06-05 Thread Rick Leir
Nawab, There are several samples. Say : find . -name solrconfig.xml You will find one under configsets/sample_techproducts/ or thereabouts. It might be in a different place in your version. The sample solrconfig is large because it is teaching you all the Solr features, and showing all the defaul

Velocity UI with Analyzing Infix Suggester?

2017-06-05 Thread Walter Underwood
Does anyone have the new suggester working in the Velocity browse UI? In 6.5.1, it uses the terms component. I could probably figure out how to do that in Velocity, but if someone has already done that, it would be great. We use the Velocity UI as an internal exploration and diagnostic search p

Re: Upgrading config from 4.5.0 to 6.5.1

2017-06-05 Thread Nawab Zada Asad Iqbal
Thanks Tony, but I think Rick's answer is different. He asked me to start with "new version of solrconfig.xml". @Rick I have been doing what Tony said (copied my config to new core, and fixed each error or warning). Is there some mega solrconfig.xml which which you recommended me to start from?

Re: composite hash

2017-06-05 Thread Susheel Kumar
Yes, otherwise when you query with /3 it is going to go to different shards (1/8th of total shards) and would not find the documents since the documents you indexed before adding /3 will reside on only one of the shard. On Mon, Jun 5, 2017 at 2:50 PM, Shawn Feldman wrote: > If i add the /3 will

Solr collections Async status is nearly useless

2017-06-05 Thread Webster Homer
the collections-api has a call to retrieve the async status. All this does is tell you failure/success. and a message: found [9cfb05af-b778-416e-b3c6-8b8e62345f4e] in failed tasks It would be nice if instead it retrieved the information written to the failed tasks queue! So I used the zkcli.sh c

Re: composite hash

2017-06-05 Thread Shawn Feldman
If i add the /3 will i need to reindex? On Mon, Jun 5, 2017 at 11:50 AM Susheel Kumar wrote: > Its should be _route_=myshard/3! > > On Mon, Jun 5, 2017 at 12:54 PM, Shawn Feldman > wrote: > > > I am indexing with a composite hash of "myshard/3!myid" > > > > If i want to query with the _route_ p

Re: Using Properties in /cdcr doesn't seem to work

2017-06-05 Thread Webster Homer
It has been several months since I tried this. I created the properties using the solr config API https://cwiki.apache.org/confluence/display/solr/Config+API#ConfigAPI-CreatingandUpdatingUser-DefinedProperties I created them as user defined properties. and then referenced them in the cdcr request

Re: Work-around for "indexed without position data"

2017-06-05 Thread Solr User
Sorry for the delay. I was able to reproduce this easily with my setup, but reproducing this on a Solr example proved challenging. Hopefully the work that I did to find the situation in which this is produced will help in resolving the problem. The driving factor for this appears to be how updat

Re: composite hash

2017-06-05 Thread Susheel Kumar
Its should be _route_=myshard/3! On Mon, Jun 5, 2017 at 12:54 PM, Shawn Feldman wrote: > I am indexing with a composite hash of "myshard/3!myid" > > If i want to query with the _route_ param, what does my route look like > > _route_=myshard/3! > or > _route_=myshard! > ? > > shawn >

composite hash

2017-06-05 Thread Shawn Feldman
I am indexing with a composite hash of "myshard/3!myid" If i want to query with the _route_ param, what does my route look like _route_=myshard/3! or _route_=myshard! ? shawn

RE: Solr 6.4. Can't index MS Visio vsdx files

2017-06-05 Thread Allison, Timothy B.
https://issues.apache.org/jira/browse/SOLR-10335 is tracking the upgrade in Solr to Tika 1.15. Please chime in on that issue. You should be able to swap in POI 3.16 (final) wherever you had earlier versions, make sure to include: poi, poi-scratchpad, poi-ooxml, poi-ooxml-schemas. And make sur

Re: Managed Synonyms query

2017-06-05 Thread ANNAMANENI RAVEENDRA
Hi, Which version of solr is this on? It will give a good idea if provided field definition like tokeniser analyser used etc? This is a case of multi word synonym which I think you should use autopharing token filter Thanks Ravi On Mon, 5 Jun 2017 at 11:20 AM, Sweta Parekh wrote: > Hi All, > >

Managed Synonyms query

2017-06-05 Thread Sweta Parekh
Hi All, We are using managed synonyms functionality at index time but one-way & replacement are not working as desired. Below are some examples that are not working Can anyone help to understand how the index time synonyms works in Solr . We are using edismax with mm=2>-1 5>100%, ps=5 Below en

Re: Function queries with Json facet

2017-06-05 Thread Susheel Kumar
Also change manufacturedate_dt to dob field and price to grade... On Mon, Jun 5, 2017 at 10:33 AM, Susheel Kumar wrote: > You are looking for something like below. Please adjust the start and > end. You can also give a fixed date instead of NOW etc.. > > curl http://localhost:8983/solr/techpro

Re: Function queries with Json facet

2017-06-05 Thread Susheel Kumar
You are looking for something like below. Please adjust the start and end. You can also give a fixed date instead of NOW etc.. curl http://localhost:8983/solr/techproducts/query -d 'q=*:*& json.facet={ byyeaar:{ type:range, field:"manufacturedate_dt", start : NOW-15YEAR/YEAR,

uima

2017-06-05 Thread Lee Carroll
The instructions at https://cwiki.apache.org/confluence/display/solr/UIMA+Integration to set up UIMA integration with solr requires an alchemy api key. This is no longer available as its part of the ibm watson offering. What is the status of https://wiki.apache.org/solr/SolrUIMA ? Would I be bett

Re: Field x is not multivalued and destination for multiple copyFields

2017-06-05 Thread Rick Leir
Nawab, If you have multivalued=true and you index a document with two or more name_* fields, then the name_token will have two or more values, all of which will be searchable. I think this is what you want, because names can be quite different in different languages. For example the country na

Field x is not multivalued and destination for multiple copyFields

2017-06-05 Thread Nawab Zada Asad Iqbal
*Hi, I have a field 'name_token' which gets value via copyFields on different language-specific fields (e.g. name_en , name_it, name_es, etc.) If I can ensure that, * *only one of these language-specific fields will have a value for a given document, is it ok to ignore this warning:"IndexSchema