import data into solr from velocity (aka Solritas)

2014-10-17 Thread LongY
hello everyone, I did lots of search, and did not find a proper way to solve this problem, and it brings me to here ask for help. I am trying to import data from velocity into solr. I defined a new link which is localhost:8983/solr/collection1/browse/importdata. This webpage is used to colle

Re: Strange behaviour with negatives queries

2014-10-17 Thread Chris Hostetter
You're seeing an excentric edge case of the way "purely negative" "Boolean Queries" work. in this example... description:ruby AND (-title:java) you have a top level boolean query with two mandatory clauses. the second clause in that top level query is a (bested) boolean query with a s

Re: Is there a way to prevent some keywords from being added to autosuggest dictionary?

2014-10-17 Thread Garth Grimm
What field(s) auto suggest uses is configurable. So you could create special fields (and associated ‘copyField’ configs) to populate specific fields for auto suggest. For example, you could have 2 fields for “hidden_desc” and “visible_desc”. Copy field both of them to a field named “descripti

Strange behaviour with negatives queries

2014-10-17 Thread lansing
Hello, We are using Solr cloud 4.8.1, I noticed this behaviour: Searchig forq=description:ruby AND (-title:java)gives 0 results But removing parenthesizesq=description:ruby AND -title:java gives valid result Pure negative query with parenthesizes also works well q=(-title:java) Is it

FW: Complex boost statement

2014-10-17 Thread Corey Gerhardt
Apparently I need to a long holiday so that I can interpret the documentation correctly. if(and(exists(query({!v="BUS_CITY:regina"})),not(BUS_IS_TOLL_FREE)),500,1) -Original Message- From: Corey Gerhardt [mailto:corey.gerha...@directwest.com] Sent: October-16-14 4:11 PM To: Solr User L

Is there a way to prevent some keywords from being added to autosuggest dictionary?

2014-10-17 Thread bbarani
We index around 10k documents in SOLR and use inbuilt suggest functionality for auto complete. We have a field that contain a flag that is used to show or hide the documents from search results. I am trying to figure out a way to control the terms added to autosuggest index (to skip the document

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

2014-10-17 Thread S.L
Shawn, Just wondering if you have any other suggestions on what the next steps whould be ? Thanks. On Thu, Oct 16, 2014 at 11:12 PM, S.L wrote: > 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

Re: upgrading CommonsHttpSolrServer to HttpSolrServer

2014-10-17 Thread Shawn Heisey
On 10/17/2014 12:47 AM, devraj.jaiman wrote: HttpSolrServer server = null; if (httpClient == null) { server = new HttpSolrServer(url); httpClient = server.getHttpClient(); } else {

Variable date range facets and fixed range labels

2014-10-17 Thread Simon Fairey
Hi I'm trying to get solr (4.10) doing more of what it does best rather than a lot of hacking that is currently in our front end code, one area I'm trying to fix is date ranges, I have 2 types of date and want to display them in 2 different ways: dateA - blocks of 25 years, this works but o

Re: eDismax - boost function of multiple values

2014-10-17 Thread Garth Grimm
Add fl=*,score to your URL, so that you get the “score” field back in the response. That’s the field value that generates the order of the results when sorting by relevancy. That value should go up for each boost. My initial guess is that the score is being pushed up so much by the “inhabitan

Re: Recovering from Out of Mem

2014-10-17 Thread Tim Potter
You'd still want to kill it ... so you'll need to register a cmd script with the JVM using -XX:OnOutOfMemoryError=kill.cmd and then you could either 1) trap the PID at startup using something like: title SolrCloud for /F "tokens=2 delims= " %%A in ('TASKLIST /FI ^"WINDOWTITLE eq SolrCloud^" /NH'

Re: Frequent recovery of nodes in SolrCloud

2014-10-17 Thread Tim Potter
A couple of things to check: 1) How many znodes are under the /overseer/queue (which you can see in the Cloud Tree panel in the Admin UI) 2) How often are you committing? The general advice is that your indexing client(s) should not send commits and instead rely on auto-commit settings in solrconf

Re: Custom JSON

2014-10-17 Thread Alexandre Rafalovitch
I wonder how hard it would be to write an URP to just copy JSON from the request into a store-only field? Regards, Alex On 17/10/2014 1:21 am, "Noble Paul" wrote: > 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,

Re: eDismax - boost function of multiple values

2014-10-17 Thread Jens Mayer
@Ahmet yes I've added it. :) @Garth First here is my complete url http://localhost:8080/solr/collection1/select?q=K&wt=json&indent=true&defType=edismax&bf=ord%28inhabitants%29&bf=ord%28importance%29&qf=city^10+zip^8+suburb^2+street&mm=1&stopwords=true&lowercaseOperators=true And here the diffe

Re: Recovering from Out of Mem

2014-10-17 Thread Salman Akram
I know this might sound weird but any easy way to do it in Windows? On Tue, Oct 14, 2014 at 7:51 PM, Boogie Shafer wrote: > yago, > > you can put more complex restart logic as shown in the examples below or > just do something similar to the java_oom.sh i posted earlier where you > just spit out