RE: Question about synonyms

2007-07-12 Thread Ard Schrijvers
Hello, Brievly, what I'm looking for is a query that launch something like this: Giving the user search expression A B C D Generated Lucene query : (myfield:I OR myfield:J OR myfield:O OR myfield:K) if someone knows a way to reach this goal, please tell me how, i'm actually

RE: A few questions regarding multi-word synonyms and parameters encoding

2007-07-12 Thread Ard Schrijvers
Hello, but honestly i haven't relaly tried anything like this ... the code for parsing the synonyms.txt file probaly splits the individual synonyms on whitespace to prodce multiple tokens which might screw you up ... you may need to get creative (perhaps use a PatternReplaceFilter to

Re: Deleting from index via web

2007-07-12 Thread vanderkerkoff
Done some more digging about this here's my delete code def delete(self): from solr import SolrConnection c = SolrConnection(host='localhost:8983', persistent=False) e_url = '/news/' + self.created_at.strftime(%Y/%m/%d) + '/' + self.slug e_url =

Re: Deleting from index via web

2007-07-12 Thread vanderkerkoff
Different tactic now adding like this idstring = news:%s; % self.id c.add(id=idstring,url_t=e_url,body_t=body4solr,title_t=title4solr,summary_t=summary4solr,contact_name_t=contactname4solr) c.commit(optimize=True) Goes in fine, search results show an ID of news:36 Delete like this

Re: Need question to configure Log4j for solr

2007-07-12 Thread Siegfried Goeschl
Hi folks, would be using commons-logging an improvement? It is a common requirement to hook up different logging infrastructure .. Cheers, Siegfried Goeschl Erik Hatcher wrote: On Jul 11, 2007, at 9:07 PM, solruser wrote: How do I configure solr to use log4j logging. I am able to

Re: Deleting from index via web

2007-07-12 Thread vanderkerkoff
I/my boss and me worked it out. The delete funtion in solr.py looks like this def delete(self, id): xstr = 'deleteid'+self.escapeVal(`id`)+'/id/delete' return self.doUpdateXML(xstr) As we're not passing an integer it get's all c*nty booby, technical term. So if I rewrite the delete to

Re: Need question to configure Log4j for solr

2007-07-12 Thread Siegfried Goeschl
Hi Erik, the troubles comes when you integrate third-party stuff depending on log4j (as I currently do). Having said this you have a strong point when looking at http://www.qos.ch/logging/classloader.jsp Cheers, Siegfried Goeschl Erik Hatcher wrote: On Jul 12, 2007, at 9:03 AM, Siegfried

Embedded Solr with Java 1.4.x

2007-07-12 Thread Jery Cook
QUESTION: Jeryl Cook ^ Pharaoh ^ http://pharaohofkush.blogspot.com/ I need to make solr work with java 1.4, the orgnaization I work for has not approved java 1.5 for the network...Before I download the source code and see if this is possible, what do u guys thing the level of effort will be?

Re: Embedded Solr with Java 1.4.x

2007-07-12 Thread Yonik Seeley
Oh, and please don't cross-post :-) On 7/12/07, Yonik Seeley [EMAIL PROTECTED] wrote: On 7/12/07, Jery Cook [EMAIL PROTECTED] wrote: http://pharaohofkush.blogspot.com/ I need to make solr work with java 1.4, the orgnaization I work for has not approved java 1.5 for the network...Before I

Facet Field Limits

2007-07-12 Thread Andrew Nagy
Hello, I would like to generate a list of facets, let's say on 5 fields. I have the facet limit set to 5 so that for each of the 5 fields there will only by up to 5 values. My question is: Is there a way to change the limit per field? Let's say on facet 2 I would like to display 10 values

Re: Facet Field Limits

2007-07-12 Thread Yonik Seeley
On 7/12/07, Andrew Nagy [EMAIL PROTECTED] wrote: My question is: Is there a way to change the limit per field? Let's say on facet 2 I would like to display 10 values instead of 5 like the other facets. From the wiki: http://wiki.apache.org/solr/SimpleFacetParameters Parameters These are

Re: Embedded Solr with Java 1.4.x

2007-07-12 Thread Ryan McKinley
solr requires 1.5. It uses generics and a bunch of other 1.5 code. Jery Cook wrote: QUESTION: Jeryl Cook ^ Pharaoh ^ http://pharaohofkush.blogspot.com/ I need to make solr work with java 1.4, the orgnaization I work for has not approved java 1.5 for the network...Before I download the

Re: Deleting from index via web

2007-07-12 Thread Mike Klaas
On 12-Jul-07, at 6:33 AM, vanderkerkoff wrote: I/my boss and me worked it out. The delete funtion in solr.py looks like this def delete(self, id): xstr = 'deleteid'+self.escapeVal(`id`)+'/id/delete' return self.doUpdateXML(xstr) As we're not passing an integer it get's all c*nty

Re: snappuller copying to wrong directory?

2007-07-12 Thread Bill Au
That change doesn't have anything to do with where snappuller place the snapshots. Is the environment variable data_dir set up correctly in conf/scripts.conf? That's where snappuller puts the snapshots. Bill On 7/12/07, Kevin Lewandowski [EMAIL PROTECTED] wrote: I've been running solr

Deleting from a very active index

2007-07-12 Thread Matthew Runo
Hello! I'm trying to remove a whole brand from our search index, but at the same time we're also running an import for others. This means the index is extreamly active at this time. I am getting a lock timeout error, but not sure what to do about it... should I just keep trying till it

Re: Deleting from a very active index

2007-07-12 Thread Matthew Runo
It looks like somehow the write.lock got hung. I manually removed the lock, and now things are good. Very strange. ++ | Matthew Runo | Zappos Development | [EMAIL PROTECTED] | 702-943-7833

Re: Deleting from a very active index

2007-07-12 Thread Yonik Seeley
I was going to say... that exception should never happen since solr controls and synchronizes adds/deletes at a higher layer (with only one solr instance accessing an index, we don't really need lucene level locking at all). One major cause of this is a crash/restart of the JVM leaving a stale

Re: Question on query syntax

2007-07-12 Thread Mike Klaas
On 12-Jul-07, at 6:25 PM, Lance Lance wrote: A simplified version of the problem: text -(collection:pile1) works, while text (-collection:pile1) finds zero records. see my other message. You cannot create a (sub)query with only prohibited clauses. The second query asks: Q = find

Re: Question on query syntax

2007-07-12 Thread Chris Hostetter
: Solr can process the query which has NOT operator (-) in the head. : If Solr find it, Solr adds MatchAllDocsQuery automatically : in the front of that query as follows: thta's not strictly true ... Solr doesn't *add* a MatchAllDocsQuery if the query is entirely prohibitive, instead Solr

Re: Need question to configure Log4j for solr

2007-07-12 Thread Chris Hostetter
: The one issue I ran into was with daily rolling log files - maybe I : missed it, but I didn't find that functionality in the JDK logging : package, however it is in log4j. : : I'm not advocating a change, just noting this. We worked around it by : leveraging Resin's support for wrapping a