Re: How to Facet on a price range

2010-11-05 Thread Ahmet Arslan
> I am able to facet on a particular field because I have > index on that field. > But I am not sure how to facet on a price range when I have > the exact price > in the 'price' field. Can anyone help here. Something like this: &facet=on&facet.query=price:[* TO 500]&facet.query=price:[500 TO *]

Re: How to Facet on a price range

2010-11-05 Thread Peter Karich
take a look here http://stackoverflow.com/questions/33956/how-to-get-facet-ranges-in-solr-results I am able to facet on a particular field because I have index on that field. But I am not sure how to facet on a price range when I have the exact price in the 'price' field. Can anyone help here.

Re: Deletes writing bytes len 0, corrupting the index

2010-11-05 Thread Michael McCandless
Hmmm... Jason can you enable IndexWriter's infoStream and get the corruption to happen again and post that (along with "ls -l" output)? Mike On Thu, Nov 4, 2010 at 5:11 PM, Jason Rutherglen wrote: > I'm still seeing this error after downloading the latest 2.9 branch > version, compiling, copying

Slave has random indexversion

2010-11-05 Thread accid
Hi, when I delete the /data directory and restart the slave, it creates a random indexversion number, which can be higher than the master indexversion number. If the newly started slave has a higher number than the master, a replication is impossible. I want to stresstest the replication, so manua

Re: Updating last_modified field when using DIH

2010-11-05 Thread Juan Manuel Alvarez
Stephan, Ephraim. Thanks for the answers!!! I am finding Solr to be a useful product, but definitely the community is what makes it a great product! So far everyone has been very helpful. Thanks! Cheers! Juan M. On Wed, Nov 3, 2010 at 9:13 AM, Ephraim Ofir wrote: > Also, your deltaImportQuery sh

Any Copy Field Caveats?

2010-11-05 Thread Will Milspec
Hi all, we're moving from an old lucene version to solr and plan to use the "Copy Field" functionality. Previously we had "rolled our own" implementation, sticking title, description, etc. in a field called 'content'. We lose some flexibility (i.e. java layer can no longer control what gets in t

Re: How to Facet on a price range

2010-11-05 Thread jayant
Thank you both. Faceting is now working on a range. -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-Facet-on-a-price-range-tp1846392p1848716.html Sent from the Solr - User mailing list archive at Nabble.com.

Replication and ignored fields

2010-11-05 Thread Markus Jelsma
Hi, I've got an ordinary master/slave replication set up. The master contains several fields that are not used by the slaves but are used by processes that interact with the master. Removing the fields from the master is not an option. Well, to save disk space i'd figure i create an `ignored` f

Re: Any Copy Field Caveats?

2010-11-05 Thread Erick Erickson
It's pretty straight-forward, just make sure your dest field has multivalued="true" Do note that the *raw* data is copied, not the analyzed. Conceptually the copy is done before analysis of the source field (which you probably already know, but the question has come up on the list from time to

Wildcard weirdness

2010-11-05 Thread C0re
Hi, I'm trying to understand what Solr is doing when a search for O'Connor and O'Conn* is done. The first search returns 4 results, which is fine. I would expect the second search to return at least 4 (the same) results, however it fails to return any. I've debugged the query and this is the ou

Re: Wildcard weirdness

2010-11-05 Thread Savvas-Andreas Moysidis
One place to start would be the Analysis page http://{your machine}:{port}/solr/admin/analysis.jsp?highlight=on There you can see exactly what happens to your query as it being moved down the Analysis chain. In my knowledge, no analysis is performed on wildcarded terms so my guess would be that th

Re: Wildcard weirdness

2010-11-05 Thread C0re
Hi Savvas, Thanks for the reply. Yep I've been trying out the Analysis tool. As you say the index does lowercase the terms. Field Name: surname Index Value: O'Connor Query Value: connor The Index Analyzer creates: o connor Which the query value above will match on. However, if the quer

Re: Wildcard weirdness

2010-11-05 Thread Savvas-Andreas Moysidis
strange..my second guess would be that stemming could be the reason but if your analyser(s) emit the same values you use for searching that's odd.. could you post your schema definition for the surname field? On 5 November 2010 17:33, C0re wrote: > > Hi Savvas, > > Thanks for the reply. Yep I'v

Re: How to Facet on a price range

2010-11-05 Thread Jan Høydahl / Cominvent
Note that using many facet.query= parameters may be expensive. Another way to solve this is to pre-compute the ranges as plain strings in another field during indexing. This can be done in your app prior to indexing or by creating a new FieldType for your range. Here's a field type that computes

Re: Replication and ignored fields

2010-11-05 Thread Jan Høydahl / Cominvent
How about hooking in Andrzej's pruning tool at the postCommit event, literally removing unused fields. I believe a "commit" is fired on the slave by itself after every successful replication, to put the index live. You could execute a script which prunes away the dead meat and then call a new c

a Solr search recall problem you probably don't even know you're having

2010-11-05 Thread Naomi Dushay
(sorry for cross postings - I think this is important information to disseminate) Executive Summary: you probably need to increase your query slop. A lot. We recently had a feedback ticket that a title search with a hyphen wasn't working properly. This is especially curious because we

Re: a Solr search recall problem you probably don't even know you're having

2010-11-05 Thread Robert Muir
On Fri, Nov 5, 2010 at 3:04 PM, Naomi Dushay wrote: > (sorry for cross postings - I think this is important information to > disseminate) > > Executive Summary:  you probably need to increase your query slop.  A lot. > I looked at your example, and it really looks a lot like https://issues.apache

Re: Replication and ignored fields

2010-11-05 Thread Markus Jelsma
Thanks for the pointer! > How about hooking in Andrzej's pruning tool at the postCommit event, > literally removing unused fields. I believe a "commit" is fired on the > slave by itself after every successful replication, to put the index live. > You could execute a script which prunes away the

Re: Wildcard weirdness

2010-11-05 Thread Ahmet Arslan
> I'm trying to understand what Solr is doing when a search > for O'Connor and > O'Conn* is done. > > The first search returns 4 results, which is fine. I would > expect the second > search to return at least 4 (the same) results, however it > fails to return > any. > > I've debugged the query an

Removing irrelevant URLS

2010-11-05 Thread Eric Martin
Hi, I have 100k URL's in my index. I specifically crawled sits relating to law. However, during my intitial crawls I didn't specify urlfilters so I am stuck with extrinsic and often irrelevant URL's like twitter, etc. Is there some way in Solr that I can run periodic URL cleanings to remov

Re: a Solr search recall problem you probably don't even know you're having

2010-11-05 Thread Naomi Dushay
Robert, Thanks! I've been using Solr 1.5 from trunk back in March - time to upgrade! I also like the "put the stopword filter after the WDF filter" fix. - Naomi On Nov 5, 2010, at 12:36 PM, Robert Muir wrote: On Fri, Nov 5, 2010 at 3:04 PM, Naomi Dushay wrote: (sorry for cross post

Re: Deletes writing bytes len 0, corrupting the index

2010-11-05 Thread Jason Rutherglen
> can you enable IndexWriter's infoStream I'd like to however the problem is only happening in production, and the indexing volume is in the millions per hour. The log would be clogged up, as it is I have logging in Tomcat turned off because it is filling up the SSD drive (yes I know, we should

Re: Deletes writing bytes len 0, corrupting the index

2010-11-05 Thread Michael McCandless
See TestIndexWriterOnDiskFull (on trunk). Look for the test w/ LUCENE-2743 in the comment... but the other tests there also test other cases that may hit disk full. Can you post the exceptions you hit? (Are these logged?). Yes this could be a hardware issue... Millions of docs indexed per hour

RE: How do I this in Solr?

2010-11-05 Thread Steven A Rowe
Hi Varun, On 10/26/2010 at 11:26 PM, Varun Gupta wrote: > I will try to implement the two filters suggested by Steven and see how > the performance matches up. Have you made any progress? I was thinking about your use case, and it occurred to me that you could get what you want by reversing the

Deploying WAR from trunk, exception

2010-11-05 Thread Darren Govoni
Hi, I built the trunk and deploy the war, but cannot access the admin URL anymore. Error loading class 'org.apache.solr.highlight.MultiColoredScoreOrderFragmentsBuilder This class seems to be missing? thanks, Darren

Re: ContentStreamDataSource

2010-11-05 Thread Lance Norskog
What program do you use to POST? How do you give parameters to Solr? Are you doing multipart upload? You might have to add all of your parameters to a custom requestHandler, like the /dataimport requestHandler. Post your DIH config file, if you can. On Thu, Nov 4, 2010 at 5:13 AM, Theodor Tolst