Re: Dynamically calculated range facet

2007-06-27 Thread Chris Hostetter
: my documents (products) have a price field, and I want to have : a dynamically calculated range facet for that in the response. FYI: there have been some previous discussions on this topic... http://www.nabble.com/blahblah-t2387813.html#a6799060

Re: Dynamically calculated range facet

2007-06-27 Thread Martin Grotzke
Chris, thanx for all this info! I'll think about these things again and then come back to you... Cheers, Martin On Tue, 2007-06-26 at 23:22 -0700, Chris Hostetter wrote: : my documents (products) have a price field, and I want to have : a dynamically calculated range facet for that in the

Re: Dynamically calculated range facet

2007-06-27 Thread Martin Grotzke
On Tue, 2007-06-26 at 16:48 -0700, Mike Klaas wrote: On 26-Jun-07, at 3:01 PM, Martin Grotzke wrote: AFAICS I do not have the possibility to specify range queries in my application, as I do not have a clue what's the lowest and highest price in the search result and what are good ranges

Re: Dynamically calculated range facet

2007-06-27 Thread Martin Grotzke
On Tue, 2007-06-26 at 19:53 -0700, John Wang wrote: www.browseengine.com has facet search that handles this. You are calculating range facets dynamically? Do you have any code I can have a look at? I had a look at c.b.solr. BoboRequestHandler, but this does not seem to calculate ranges. Cheers,

Error Response as HTML in Solr 1.2

2007-06-27 Thread Maximilian Hütter
Hi all, I switched to Solr version 1.2 and found that the response format changed completely for the error responses (for updates), which are delivered as HTML-Pages. Before it was just XML coming back in all cases. Is there a way to change this to XML? Some switch in the solrconfig.xml I didn't

Re: XML vs JSON writer performance issues

2007-06-27 Thread Jérôme Etévé
2007/6/27, Yonik Seeley [EMAIL PROTECTED]: It would be helpful if you could try out the patch at https://issues.apache.org/jira/browse/SOLR-276 -Yonik I just tryed it out and it works. json output is now as fast as xml ! Well done :) thank you ! J. -- Jerome Eteve. [EMAIL PROTECTED]

Re: snapshooter no go

2007-06-27 Thread Bill Au
I would also check ls -ld /foo/jetty-6.1.3 too. Bill On 6/27/07, Chris Hostetter [EMAIL PROTECTED] wrote: : Here is a puzzling one. I can't get Solr to invoke snaphooter properly. : Solr claims my snapshooter is not where I said it is: : : SEVERE: java.io.IOException: Cannot run program

Re: snapshooter no go

2007-06-27 Thread Otis Gospodnetic
PATH - bingo! The config + the log message are a bit misleading there, IMHO. The dir is documented as: dir - dir to use as the current working directory. default=. And its default value is defined as: str name=dirsolr/bin/str The error was: Cannot run program snapshooter (in directory

RE: Dynamically calculated range facet

2007-06-27 Thread Will Johnson
one thing to keep in mind: it's typically not a good idea to have the constraint set of a facet change just because some other constraint was added to the query -- individual constraints might disappear because they no longer apply, but it can be very disconcerting to a user to when options hcange

Re: multiple indices

2007-06-27 Thread Rafael Rossini
I have 3 different instances of solr on jetty 6.1.13, but you need the jetty plus. my etc/jetty.xml looks like this Call name=addLifeCycle Arg New class=org.mortbay.jetty.webapp.WebAppContext ArgRef id=Contexts//Arg ArgSystemProperty name=jetty.home

RE: Dynamically calculated range facet

2007-06-27 Thread Martin Grotzke
On Wed, 2007-06-27 at 09:06 -0400, Will Johnson wrote: one thing to keep in mind: it's typically not a good idea to have the constraint set of a facet change just because some other constraint was added to the query -- individual constraints might disappear because they no longer apply, but it

Re: Dynamically calculated range facet

2007-06-27 Thread Ryan McKinley
Martin Grotzke wrote: On Tue, 2007-06-26 at 23:22 -0700, Chris Hostetter wrote: : So if it would be possible to go over each item in the search result : I could check the price field and define my ranges for the specific : query on solr side and return the price ranges as a facet. : Otherwise,

Re: Dynamically calculated range facet

2007-06-27 Thread Mike Klaas
On 27-Jun-07, at 1:07 AM, Martin Grotzke wrote: On Tue, 2007-06-26 at 16:48 -0700, Mike Klaas wrote: On 26-Jun-07, at 3:01 PM, Martin Grotzke wrote: Easy: facet based on fixed ranges (say, every 10 dollars for x 100, 100 dollars for x 1000, etc)., and combine them sensically on the

Re: multiple indices

2007-06-27 Thread Chris Hostetter
: Hm, that JNDI again... this makes it sound like SOLR-215 is completely : superfluous? No ... i still haven't had a chance to review the patch, but Henri makes some great argmuments for the WHY of the patch in the issue description... Multiple cores: Deployment issues within some

RE: Dynamically calculated range facet

2007-06-27 Thread Chris Hostetter
: managers and test users happy. The use case that often came up was the : ability to dynamically drill inside ranges. For instance my first : search for 'computer on a large ecommerce site might yield ranges of : 0-500, 500-1000, 1000-2000, 2000+, selecting 500-1000 might then yield : ranges

Re: Dynamically calculated range facet

2007-06-27 Thread Chris Hostetter
: For now, if you want to integrate existing standard/dismax : functionality, there is no great way to cleanly do this without copying : You could almost do what you need by overriding getFacetInfo(), but you : also need to check the DocList. actually, for this use case i think overriding

RE: snapshooter no go

2007-06-27 Thread Xuesong Luo
I got similar problems, tried both default setting solr/bin and full path /export/home/jboss/jboss-4.0.5.GA/bin/solr/bin, neither works. I'm using 1.2. 2007-06-27 14:10:03,907 ERROR [STDERR] Jun 27, 2007 2:10:03 PM org.apache.solr.update.DirectUpdateHandler2 commit INFO: start

RE: snapshooter no go

2007-06-27 Thread Xuesong Luo
I thought I had to use the full path in dir attribute, later I realized I should modify the environment variable path. Now it's working, I didn't append ./ before snapshooter. Thanks Xuesong -Original Message- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27,

Re: i wanna change response type to PHP serialize

2007-06-27 Thread James liu
It is slower than json and xml,,,and it will change my content into ??? when i use json , content is ok. afternoon, iwill read ur code. 2007/6/27, James liu [EMAIL PROTECTED]: ok,,thks nick,,,i just forget replace jar file.. wait a minute i will test speed... 2007/6/27, Nick Jenkin

Re: i wanna change response type to PHP serialize

2007-06-27 Thread Nick Jenkin
Hi James It is totally not optimized, when you say change your content into ???, I assume this is because of UTF8 issues, are you using utf8_decode etc? Thanks -Nick On 6/28/07, James liu [EMAIL PROTECTED] wrote: It is slower than json and xml,,,and it will change my content into ??? when i use

Re: i wanna change response type to PHP serialize

2007-06-27 Thread James liu
code not change,,,and i not use utf8_decodeshould do it? 2007/6/28, Nick Jenkin [EMAIL PROTECTED]: Hi James It is totally not optimized, when you say change your content into ???, I assume this is because of UTF8 issues, are you using utf8_decode etc? Thanks -Nick On 6/28/07, James liu

filter field have to be indexed?

2007-06-27 Thread James liu
i means define it in schema.xml,,, -- regards jl