Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
I have some good news :o) https://issues.apache.org/jira/browse/SOLR-275 Please let me know if you find any bugs Thanks -Nick On 6/26/07, James liu [EMAIL PROTECTED] wrote: I think it simple to u. so i wait for ur good news. 2007/6/26, Nick Jenkin [EMAIL PROTECTED]: I am also quite

Re: i wanna change response type to PHP serialize

2007-06-26 Thread James liu
i just cp it to src\java\org\apache\solr\request and ant dist...i think maybe my method is wrong. same error infromation... java.lang.NoClassDefFoundError: org/apache/solr/search/ScorePriorityQueue at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:886)

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
Interesting, what version of solr are you using, I tested on 1.2. -Nick On 6/26/07, James liu [EMAIL PROTECTED] wrote: i just cp it to src\java\org\apache\solr\request and ant dist...i think maybe my method is wrong. same error infromation... java.lang.NoClassDefFoundError:

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
Hey James, The error you posted is the same you posted above in a previous email, could it be something else? -Nick On 6/26/07, Nick Jenkin [EMAIL PROTECTED] wrote: Interesting, what version of solr are you using, I tested on 1.2. -Nick On 6/26/07, James liu [EMAIL PROTECTED] wrote: i just cp

Re: Solr - autocommit params

2007-06-26 Thread Daniel Alheiros
Thanks Mike. Regards, Daniel Alheiros On 25/6/07 20:15, Mike Klaas [EMAIL PROTECTED] wrote: On 25-Jun-07, at 8:02 AM, Daniel Alheiros wrote: I've configured my Solr instance using autocommit in the following way: !-- autocommit pending docs if certain criteria are met -- autoCommit

Re: add CJKTokenizer to solr

2007-06-26 Thread Daniel Alheiros
Hi Hoss. Yes, it's the tricky part when re-structuring configs... One possible solution is, when you create a new schema, you offer a conversion tool... Other is to define a version on the config and depending on the version, the expected structure will be different. I'm sure you know this all,

Re: Benefit of schema

2007-06-26 Thread Paul Battley
On 23/06/07, Erik Hatcher [EMAIL PROTECTED] wrote: It's nice to have known straightforward field names for querying, like: title:web development AND author:kimsal With wildcarded fields, you won't end up with such clean field names. Actually, you can use clean wildcarded names as

RE: I'm using PHP curl post xml command to Solr,Is it the only way to post data?

2007-06-26 Thread Kijiji Xu, Ping
I had solved this problem,below is my POST code,I used HTTP_Request of PEAR,it’s so simple.thank you all very much .FYI; private function doPost($url,$postData){ $req = new HTTP_Request($url,array( 'method' = HTTP_REQUEST_METHOD_POST, 'http' =

delete by query multiple Ids

2007-06-26 Thread michael ravits
hello solrs is it possible to query multiple specific ids? something like this: deletequerymediaId:6720,6721,6722,8762,9754/query/delete - Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.

Re: delete by query multiple Ids

2007-06-26 Thread Erik Hatcher
On Jun 26, 2007, at 6:46 AM, michael ravits wrote: hello solrs is it possible to query multiple specific ids? something like this: deletequerymediaId:6720,6721,6722,8762,9754/query/delete sure, but you need to use proper query parser syntax: mediaId:(6720 OR 6721 OR )

multiple indices

2007-06-26 Thread michael ravits
dear solrs - thanks for all your help. I have multiple applications (blogs/forums/video/etc) - each of these is independent (no need to perform queries on multiple indices). Would it be best to use multiple instances of SOLR/JVM - one for each index or use a solution where only one JVM

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Tristan Vittorio
Thanks Nick for you original version of the PHPResponseWriter class, I've submitted an updated version of your class https://issues.apache.org/jira/browse/SOLR-275 which compiles in the current svn trunk and fixed a small bug when score is not included in the return field list. cheers, Tristan

Re: multiple indices

2007-06-26 Thread Otis Gospodnetic
I would use SOLR-215 instead of running multiple instances on the same box. Otis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simpy -- http://www.simpy.com/ - Tag - Search - Share - Original Message From: michael ravits [EMAIL PROTECTED] To:

How to use bit fields to narrow a search

2007-06-26 Thread Siegfried Goeschl
Hi folks, I'm currently evaluating SOLR to implement fulltext search and within 8 hours I have my content imported and able to benchmark the queries ... :-) As a beginner with Lucence/SOLR I have a problem where to add my special features - little bit overloaded with Lucene in Action and SOLR

Re: How to use bit fields to narrow a search

2007-06-26 Thread Yonik Seeley
On 6/26/07, Siegfried Goeschl [EMAIL PROTECTED] wrote: Hi folks, I'm currently evaluating SOLR to implement fulltext search and within 8 hours I have my content imported and able to benchmark the queries ... :-) As a beginner with Lucence/SOLR I have a problem where to add my special features

Re: How to use bit fields to narrow a search

2007-06-26 Thread Siegfried Goeschl
Hi Yonik, looks intersting - I give it a try Cheers, Siegfried Goeschl Yonik Seeley wrote: On 6/26/07, Siegfried Goeschl [EMAIL PROTECTED] wrote: Hi folks, I'm currently evaluating SOLR to implement fulltext search and within 8 hours I have my content imported and able to benchmark

XML vs JSON writer performance issues

2007-06-26 Thread Jérôme Etévé
Hi all. I'm currently running some tests with solr on a small index and I noticed a big difference on the response time of queries depending on the use of XML or json as a response format. In average, my test queries (including http connections open and close ) takes 6 ms to perform when I ask

Re: XML vs JSON writer performance issues

2007-06-26 Thread Jérôme Etévé
On 6/26/07, Yonik Seeley [EMAIL PROTECTED] wrote: On 6/26/07, Jérôme Etévé [EMAIL PROTECTED] wrote: I'm currently running some tests with solr on a small index and I noticed a big difference on the response time of queries depending on the use of XML or json as a response format. In

Re: Does sort field need have to be 'store'?

2007-06-26 Thread Mike Klaas
On 25-Jun-07, at 10:53 PM, James liu wrote: [quote]how can i use index all with ram and how to config which ram i should use?[/quote] Your os will automatically load the most frequently-used parts of the index in ram. If your total ram is at least as large as the total JVM heap size

Re: XML vs JSON writer performance issues

2007-06-26 Thread Yonik Seeley
On 6/26/07, Jérôme Etévé [EMAIL PROTECTED] wrote: I just tried the python writer and it's as fast as XML is. I'm still looking at the code trying to point out the reason of that. Thanks for any help. It's Java's braindead Reader/Writer implementations. If you want really good performance,

Re: add CJKTokenizer to solr

2007-06-26 Thread Chris Hostetter
: conversion tool... Other is to define a version on the config and : depending on the version, the expected structure will be different. FYI: schema.xml does have this ... it's one of hte ,schema attributes. we've only ever reved it once when multiValue fields were added because we wanted to

Re: XML vs JSON writer performance issues

2007-06-26 Thread Yonik Seeley
It would be helpful if you could try out the patch at https://issues.apache.org/jira/browse/SOLR-276 -Yonik On 6/26/07, Yonik Seeley [EMAIL PROTECTED] wrote: On 6/26/07, Jérôme Etévé [EMAIL PROTECTED] wrote: I just tried the python writer and it's as fast as XML is. I'm still looking at

solrj and appending to existing index

2007-06-26 Thread Otis Gospodnetic
Hi, I took a quick look at solrj. One thing I didn't find is a way to add documents to an existing index without overwriting the index. I looked at the sources and the unit tests, but didn't spot the append modus operandi. Ryan, or somebody, where should I look? Thanks, Otis

Re: solrj and appending to existing index

2007-06-26 Thread Brian Whitman
On Jun 26, 2007, at 4:11 PM, Otis Gospodnetic wrote: Hi, I took a quick look at solrj. One thing I didn't find is a way to add documents to an existing index without overwriting the index. I looked at the sources and the unit tests, but didn't spot the append modus operandi. Ryan,

RE: solrj and appending to existing index

2007-06-26 Thread Will Johnson
If you create a SolrServer and start adding documents you are updating the index with new documents. If you're id's happen to collide with ones in the index then you will overwrite those documents but that's the only way you could end up with less than existing docs + docs added. - will

RE: solrj and appending to existing index

2007-06-26 Thread Will Johnson
I just spotted one thing looking at the unit test org.apache.solr.client.solrj.SolrExampleTestBase SolrServer server = getSolrServer(); // Empty the database... server.deleteByQuery( *:* );// delete everything! This is here purely for testing purposes and only so that we know what is in the

Re: solrj and appending to existing index

2007-06-26 Thread Otis Gospodnetic
Aha, maybe that is what happened, thanks! So this means there is no switch for clear the index first as there is with Lucene's IndexWriter, for example. An explicit server.deleteByQuery( *:* ); is needed. Otis - Original Message From: Will Johnson [EMAIL PROTECTED] To:

Dynamically calculated range facet

2007-06-26 Thread Martin Grotzke
Hi, my documents (products) have a price field, and I want to have a dynamically calculated range facet for that in the response. E.g. I want to have this in the response price:[* TO 20] - 23 price:[20 TO 40] - 42 price:[40 TO *] - 33 if prices are between 0 and 60 but price:[* TO 100] - 23

Re: Dynamically calculated range facet

2007-06-26 Thread Mike Klaas
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 according to the (statistical) distribution of prices in the

snapshooter no go

2007-06-26 Thread Otis Gospodnetic
Hi, 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 snapshooter (in directory solr/bin): java.io.IOException: error=2, No such file or directory So I added some

Re: snapshooter no go

2007-06-26 Thread James liu
first try it? which system u use? if u use freebsd, just give up trying. it not fit for freebsd. 2007/6/27, Otis Gospodnetic [EMAIL PROTECTED]: Hi, 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:

Re: Does sort field need have to be 'store'?

2007-06-26 Thread James liu
2007/6/27, Mike Klaas [EMAIL PROTECTED]: On 25-Jun-07, at 10:53 PM, James liu wrote: [quote]how can i use index all with ram and how to config which ram i should use?[/quote] Your os will automatically load the most frequently-used parts of the index in ram. If your total ram is at

Re: Does sort field need have to be 'store'?

2007-06-26 Thread Yonik Seeley
On 6/26/07, James liu [EMAIL PROTECTED] wrote: thks mike,,,the second question is how to calc the ram size i should have when i wanna index reside completely in RAM. It's fairly specific to the collection... index a bunch of documents and see how much space it takes up. Make sure to do a lot

Re: i wanna change response type to PHP serialize

2007-06-26 Thread James liu
Yes, i use 1.2my compile method: download solr 1.2 and modify file by your patch. use `ant dist` to compile it. no error show. i can see its admin gui, but i wanna try search, it will show me the error information, Is my compile method right? if not, show me how to compile it. it seems

Re: I'm using PHP curl post xml command to Solr,Is it the only way to post data?

2007-06-26 Thread James liu
how about its performance? 2007/6/26, Kijiji Xu, Ping [EMAIL PROTECTED]: I had solved this problem,below is my POST code,I used HTTP_Request of PEAR,it's so simple.thank you all very much .FYI; private function doPost($url,$postData){ $req = new HTTP_Request($url,array(

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
If you are using the example provided in 1.2 (using jetty) you need to use ant example rather than ant dist -Nick On 6/27/07, James liu [EMAIL PROTECTED] wrote: Yes, i use 1.2my compile method: download solr 1.2 and modify file by your patch. use `ant dist` to compile it. no error show.

Re: i wanna change response type to PHP serialize

2007-06-26 Thread James liu
i use tomcat ,, send ur solr version to me...i try it again.. 2007/6/27, Nick Jenkin [EMAIL PROTECTED]: If you are using the example provided in 1.2 (using jetty) you need to use ant example rather than ant dist -Nick On 6/27/07, James liu [EMAIL PROTECTED] wrote: Yes, i use 1.2my

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
http://nickjenkin.com/misc/apache-solr-1.2.0-php-serialize.tar.gz Try that -Nick On 6/27/07, James liu [EMAIL PROTECTED] wrote: i use tomcat ,, send ur solr version to me...i try it again.. 2007/6/27, Nick Jenkin [EMAIL PROTECTED]: If you are using the example provided in 1.2 (using jetty)

RE: I'm using PHP curl post xml command to Solr,Is it the only way to post data?

2007-06-26 Thread Kijiji Xu, Ping
Ya,it cost 20-30ms per every update 1 doc operation(add,delete command) ,but not commit. So, I think it'a all right -Original Message- From: James liu [mailto:[EMAIL PROTECTED] Sent: 2007年6月27日 9:39 To: solr-user@lucene.apache.org Subject: Re: I'm using PHP curl post xml command to

Re: Dynamically calculated range facet

2007-06-26 Thread John Wang
www.browseengine.com has facet search that handles this. We are working on a solr plugin. -John On 6/26/07, Mike Klaas [EMAIL PROTECTED] 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

Re: i wanna change response type to PHP serialize

2007-06-26 Thread James liu
ok,,thks nick,,,i just forget replace jar file.. wait a minute i will test speed... 2007/6/27, Nick Jenkin [EMAIL PROTECTED]: http://nickjenkin.com/misc/apache-solr-1.2.0-php-serialize.tar.gz Try that -Nick On 6/27/07, James liu [EMAIL PROTECTED] wrote: i use tomcat ,, send ur solr

Re: snapshooter no go

2007-06-26 Thread Chris Hostetter
: 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 snapshooter (in : directory solr/bin): java.io.IOException: error=2, No such file or : directory off the top of