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 execu

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 logger

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 docs

RE: Question on query syntax

2007-07-12 Thread Lance Lance
A simplified version of the problem: text -(collection:pile1) works, while text (-collection:pile1) finds zero records. lance _ From: Lance Lance [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 5:58 PM To: 'solr-user@lucene.apache.org' Subject: Question on query synta

Re: Question on query syntax

2007-07-12 Thread Koji Sekiguchi
Lance, I think you are right. I met the same problem before. > -(collection:pile1 OR collection:pile2) 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: MatchAllDocsQuery -(coll

RE: Question on query syntax

2007-07-12 Thread Lance Lance
Ok, here's a simpler version: _ From: Lance Lance [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 5:58 PM To: 'solr-user@lucene.apache.org' Subject: Question on query syntax Are there any known bugs in the syntax parser? We're using lucene-2.2.0 and Solr 1.2. We have docume

Re: Question on query syntax

2007-07-12 Thread Mike Klaas
On 12-Jul-07, at 5:58 PM, Lance Lance wrote: Are there any known bugs in the syntax parser? We're using lucene-2.2.0 and Solr 1.2. We have documents with searchable text and a field 'collection'. This query works as expected, finding everything except for collections 'pile1' and 'pile2'.

Re: Need question to configure Log4j for solr

2007-07-12 Thread Ken Krugler
: 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 there have been several discussions baout changing the logger used by Solr ... the best summatio

Question on query syntax

2007-07-12 Thread Lance Lance
Are there any known bugs in the syntax parser? We're using lucene-2.2.0 and Solr 1.2. We have documents with searchable text and a field 'collection'. This query works as expected, finding everything except for collections 'pile1' and 'pile2'. text -(collection:pile1 OR collection:pile2)

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 lo

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 +

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 ca

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 replic

Re: custom sorting for multivalued field

2007-07-12 Thread Chris Hostetter
: Is it possible to assign a custom sorting value for : each of the values in the multivalued field? So that : the document gets sorted differently, depending on the : matched value in the multivalued field. Sorting happens extremely independently from matching ... there is no mechanism availabl

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 = ''+self.escapeVal(`id`)+'' return self.doUpdateXML(xstr) As we're not passing an integer it get's all c*nty booby, technical term

Re: Need question to configure Log4j for solr

2007-07-12 Thread Ryan McKinley
Check two related discussions: http://www.nabble.com/logging---slf4j--tf3366438.html#a9366144 where I suggested using slf4j and: http://www.nabble.com/Changing-Logging-in-Solr-to-Apache-Commons-Logging-tf3484843.html#a9744439 I'm still for switching to slf4j, but am pushing it as JDK logging is

Re: Need question to configure Log4j for solr

2007-07-12 Thread Chris Hostetter
: 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 there have been several discussions baout changing the logger used by Solr ... the best summatio

snappuller copying to wrong directory?

2007-07-12 Thread Kevin Lewandowski
I've been running solr replication for several months with no issues but recently had an instance where snappuller was running for about 1.5 hours. rsync was still active, so it was still copying data. I also noticed that there was a snapshot.200707 directory inside of the main index directory

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 so

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

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 ins

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

Re: Embedded Solr with Java 1.4.x

2007-07-12 Thread Yonik Seeley
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 download the source code and see if this is possible, what do u guys thing the level of effo

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: 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

Re: Need question to configure Log4j for solr

2007-07-12 Thread Erik Hatcher
On Jul 12, 2007, at 9:03 AM, Siegfried Goeschl wrote: would be using commons-logging an improvement? It is a common requirement to hook up different logging infrastructure .. My personal take on it is *adding* a dependency to keep functionality the same isn't an improvement. JDK logging, w

RE: How to run the Embedded Solr Sample

2007-07-12 Thread Kijiji Xu, Ping
1 we have to set the solr home in the main function manually, because there is some problem to set �CDsolr.solr.home=… in the java command parameters, it looks like SolrCore didn’t read the parameter,I'm not sure about this problem, so we write in main function: Config.setInstanceDir(“E:/apach

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 = ''+self.escapeVal(`id`)+'' 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 be like this def

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 configure

Re: Deleting from index via web

2007-07-12 Thread vanderkerkoff
ok, I'm now printing out the xstr variable that the delete in solr.py uses when it's trying to delete. it's coming out like this 'news:39' Those quotes look suspicious Going to work out how to switch more debugging on in solr now so I can see what's going on exactly -- View this message in con

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 delidstri

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 = e_url.encode('as

Re: Need question to configure Log4j for solr

2007-07-12 Thread Erik Hatcher
On Jul 11, 2007, at 9:07 PM, solruser wrote: How do I configure solr to use log4j logging. I am able to configure tomcat 5.5.23 to use log4j. But I could not get solr to use log4j. I have 3 context of solr running in tomcat which refers to war file in commons. Solr uses standard JDK loggin

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 PatternReplaceFil

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 > a

Deleting from index via web

2007-07-12 Thread vanderkerkoff
Hello everyone We're adding records to our 1.1 index through django and python like so, using the jetty app. This is in the save definition. from solr import SolrConnection c = SolrConnection(host='localhost:8983', persistent=False) c.add(id=e_url,url_t=e_url,body_t=body4solr,title_t=title4solr,