Re: Get Data under Highlight Json value pair

2014-10-16 Thread bastjan
> How can I get the value , is there any option at query syntax, current I > used &h1.on and &h1.fl= > > "highlighting":{ > "":{ > "CatalogSearch_en-US":[" > > VCM > > "], > "Name_en-US":[" > > VCM > > > > TO > > > > LAPTOP > > CABLE"], > "Description_en-US":[".

Re: How should one search on all fields? *:XX does not work

2014-10-16 Thread Jack Krupansky
Hey, what do you think this is, Elasticsearch?!! Or... try LucidWorks Search, which supports "ALL" as a pseudo-field name. It supports "*" as well. See: https://docs.lucidworks.com/display/lweug/Field+Queries Whether LucidWorks still supports their (my!) query parser in their new Fusion prod

Re: How to use less than and greater than in data-config file of solr

2014-10-16 Thread Ahmet Arslan
Hi, Since it is an xml file you need to encode greater than sign. > Ahmet On Thursday, October 16, 2014 8:52 AM, madhav bahuguna wrote: I have two tables and i want to link them using greater than and less than condition.They have nothing in common,the only way i can link them is using range

Re: Does Solr support this?

2014-10-16 Thread Upayavira
Nope, not yet. Someone did propose a JavascriptRequestHandler or such, which would allow you to code such things in Javascript (obviously), but I don't believe that has been accepted or completed yet. Upayavira On Thu, Oct 16, 2014, at 03:48 AM, Aaron Lewis wrote: > Hi, > > I'm trying to a "if

Re: How should one search on all fields? *:XX does not work

2014-10-16 Thread Alexandre Rafalovitch
On 16 October 2014 06:50, Jack Krupansky wrote: > Hey, what do you think this is, Elasticsearch?!! LoL. AFAIK, ElasticSearch does it by auto-copying all fields to _all_. So, easy enough to replicate with a single "copyField * -> text" instruction. With the appropriate loss of precision, analyzers

Re: eDismax - boost function of multiple values

2014-10-16 Thread Jens Mayer
Hey Ahmet, thanks for your answer. I've read about this on the following page: http://wiki.apache.org/solr/FunctionQuery Using FunctionQuery point 3: "The bf parameter actually takes a list of function queries separated by whitespace and each with an optional boost." If I write it the way you s

Boost on basis of field is present or not in found documents

2014-10-16 Thread Rahul
Where should i do changes in config files if i want to boost on the basis of if a field is present in my found documents. Explanation: I have documents with fields name, address, id, number, where number may or may not exists. I have to rank the documents higher based on if number is not present.

Re: Does Solr support this?

2014-10-16 Thread Peter Keegan
I'm doing something similar with a custom search component. See SOLR-6502 On Thu, Oct 16, 2014 at 8:14 AM, Upayavira wrote: > Nope, not yet. > > Someone did propose a JavascriptRequestHandler or such, which would > allow you to code such things i

Re: eDismax - boost function of multiple values

2014-10-16 Thread Ahmet Arslan
Hi, I forgot one ampersand in my example. Did you add it? q=foo&bf=ord(inhabitants)&bf=ord(importance) Ahmet On Thursday, October 16, 2014 4:50 PM, Jens Mayer wrote: Hey Ahmet, thanks for your answer. I've read about this on the following page: http://wiki.apache.org/solr/FunctionQuery U

Re: Boost on basis of field is present or not in found documents

2014-10-16 Thread Ahmet Arslan
Hi, Can't you mix not, exists, if functions? https://cwiki.apache.org/confluence/display/solr/Function+Queries boost=if(not(exists(number)),1,100) On Thursday, October 16, 2014 5:13 PM, Rahul wrote: Where should i do changes in config files if i want to boost on the basis of if a field is

Re: eDismax - boost function of multiple values

2014-10-16 Thread Garth Grimm
Spaces should work just fine. Can you show us exactly what is happening with the score that leads you to the conclusion that it isn’t working? Some testing from an example collection I have… No boost: http://localhost:8983/solr/collection1/select?q=text%3Abook&fl=id%2Cprice%2Cyearpub%2Cscore&wt

Add core in solr.xml | Problem with starting SOLRcloud

2014-10-16 Thread roySolr
Hello, Our platform has 4 solr instances and 3 zookeepers(solr 4.1.0). I want to add a new core in my solrcloud. I add the new core to the solr.xml file: I put the config files in the directory collection2. I uploaded the new config to zookeeper and start solr. Solr did not start up and gives

Custom JSON

2014-10-16 Thread Scott Dawson
Hello, I'm trying to use the new custom JSON feature described in https://issues.apache.org/jira/browse/SOLR-6304. I'm running Solr 4.10.1. It seems that the new feature, or more specifically, the /update/json/docs endpoint is not enabled out-of-the-box except in the schema-less example. Is there s

Re: Problem with DIH

2014-10-16 Thread Dan Davis
This seems a little abstract. What I'd do is double check that the SQL is working correctly by running the stored procedure outside of Solr and see what you get. You should also be able to look at the corresponding .properties file and see the inputs used for the delta import. If the data impo

Frequent recovery of nodes in SolrCloud

2014-10-16 Thread sachinpkale
Hi, Recently we have shifted to SolrCloud (4.10.1) from traditional Master-Slave configuration. We have only one collection and it has only only one shard. Cloud Cluster contains total 12 nodes (on 8 machines. On 4 machiens, we have two instances running on each) out of which one is leader. When

Re: Custom JSON

2014-10-16 Thread Noble Paul
The end point /update/json/docs is enabled implicitly in Solr irrespective of the solrconfig.xml In schemaless the fields are created automatically by solr. If you have all the fields created in your schema.xml it will work . if you need an id field please use a copy field to create one --Nobl

Re: Custom JSON

2014-10-16 Thread Scott Dawson
Noble, Thanks. You're right. I had some things incorrectly configured but now I can put structured JSON into Solr using the out-of-the-box solrconfig.xml. One additional question: Is there any way to query Solr and receive the original structured JSON document in response? Or does the flattening p

Re: import solr source to eclipse

2014-10-16 Thread Dan Davis
I had a problem with the "ant eclipse" answer - it was unable to resolve "javax.activation" for the Javadoc. Updating solr/contrib/dataimporthandler-extras/ivy.xml as follows did the trick for me: - + What I'm trying to do is to construct a failing Unit test for something that I think is a b

Re: Frequent recovery of nodes in SolrCloud

2014-10-16 Thread Jürgen Wagner (DVT)
Hello, you have one shard and 11 replicas? Hmm... - Why you have to keep two nodes on some machines? - Physical hardware or virtual machines? - What is the size of this index? - Is this all on a local network or are there links with potential outages or failures in between? - What is the query l

Complex boost statement

2014-10-16 Thread Corey Gerhardt
Edismax, solrnet I'm thinking that solrnet is going to be my problem due to I can only sent one "boost" parameter. Is it possible to have a boost value: if(exists(query({!v="BUS_CITY:regina"}))&&(BUS_IS_NEARBY),20,1) Thanks, Corey

Re: SolrCloud 4.7 not doing distributed search when querying from a load balancer.

2014-10-16 Thread S.L
Shawn, Please find the answers to your questions. 1. Java Version :java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) 2.OS CentOS Linux release 7.0.1406 (Core) 3. Everything is 64 bit , OS , Java , and CPU

Re: SolrCloud 4.7 not doing distributed search when querying from a load balancer.

2014-10-16 Thread Shawn Heisey
On 10/16/2014 6:27 PM, S.L wrote: 1. Java Version :java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) I believe that build 51 is one of those that is known to have bugs related to Lucene. If you can upgr

Re: import solr source to eclipse

2014-10-16 Thread Erick Erickson
Sorry, not an Eclipse guy, I'll have to wait for them to chime in... Kudos for trying to construct a unit test illustrating the error though, that'll be a great help! Erick On Thu, Oct 16, 2014 at 4:14 PM, Dan Davis wrote: > I had a problem with the "ant eclipse" answer - it was unable to resol

Re: Frequent recovery of nodes in SolrCloud

2014-10-16 Thread Erick Erickson
And what is your zookeeper timeout? When it's too short that can lead to this behavior. Best, Erick On Thu, Oct 16, 2014 at 4:34 PM, "Jürgen Wagner (DVT)" wrote: > Hello, > you have one shard and 11 replicas? Hmm... > > - Why you have to keep two nodes on some machines? > - Physical hardware o

Re: SolrCloud 4.7 not doing distributed search when querying from a load balancer.

2014-10-16 Thread S.L
Shawn , 1. I will upgrade to 67 JVM shortly . 2. This is a new collection as , I was facing a similar issue in 4.7 and based on Erick's recommendation I updated to 4.10.1 and created a new collection. 3. Yes, I am hitting the replicas of the same shard and I see the lists are

Re: Frequent recovery of nodes in SolrCloud

2014-10-16 Thread Sachin Kale
- Why you have to keep two nodes on some machines? - These are very powerful machines (32-Core, 64GB) and our index size is 1GB. We are allocating 7GB to JVM, so we thought it would be OK to have two instances on the same machine. - Physical hardware or virtual machines? - Physical hardwar

Re: Frequent recovery of nodes in SolrCloud

2014-10-16 Thread Sachin Kale
>From ZooKeeper side, we have following configuration: tickTime=2000 dataDir=/var/lib/zookeeper clientPort=2181 initLimit=5 syncLimit=2 server.1=192.168.70.27:2888:3888 server.2=192.168.70.64:2889:3889 server.3=192.168.70.26:2889:3889 Also, in solr.xml, we have zkCl

Re: Frequent recovery of nodes in SolrCloud

2014-10-16 Thread Sachin Kale
Also, the PingRequestHandler is configured as: server-enabled.txt On Fri, Oct 17, 2014 at 9:07 AM, Sachin Kale wrote: > From ZooKeeper side, we have following configuration: > tickTime=2000 > dataDir=/var/lib/zookeeper > clientPort=2181 > initLimit=5 > syncLimit=2 > se

Re: Custom JSON

2014-10-16 Thread Noble Paul
The original json is is not stored the fields are extracted and the data is thrown away On Fri, Oct 17, 2014 at 1:18 AM, Scott Dawson wrote: > Noble, > Thanks. You're right. I had some things incorrectly configured but now I > can put structured JSON into Solr using the out-of-the-box solrconfig

upgrading CommonsHttpSolrServer to HttpSolrServer

2014-10-16 Thread devraj.jaiman
Hi All, We are upgrading from solr 3.3 to 4.9. But as in solr 4.9 CommonsHttpSolrServer is not available, so I want to replace it with HttpSolrServer. In solr 3.3 we're using the following code: CommonsHttpSolrServer server = null; if (httpClient == null) {