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

2007-06-25 Thread James liu
thks Yonik,and [quote]how can i use index all with ram and how to config which ram i should use?[/quote]

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

2007-06-25 Thread Yonik Seeley
On 6/25/07, James liu <[EMAIL PROTECTED]> wrote: for example, i wanna sort by datetime, does it have to be store='true', and i wanna define it That's fine... to sort by a field, it must be indexed. It does not matter if it is stored. -Yonik

Re: maybe someone know which faster

2007-06-25 Thread Yonik Seeley
On 6/25/07, James liu <[EMAIL PROTECTED]> wrote: 10m docs and 4k/doc, 1m docs and 40k/doc which will fast in same environment? For simple queries on both, 1M docs will probably be slightly faster. You probably shouldn't make the decision on that though... go through the use cases and see what

Re: i wanna change response type to PHP serialize

2007-06-25 Thread James liu
I think it simple to u. so i wait for ur good news. 2007/6/26, Nick Jenkin <[EMAIL PROTECTED]>: I am also quite interested in getting a serialized PHP array response writer, after some investigation it doesn't seem as difficult as I first thought, I will have a try at implementing this when I

maybe someone know which faster

2007-06-25 Thread James liu
10m docs and 4k/doc, 1m docs and 40k/doc which will fast in same environment? -- regards jl

Does sort field need have to be 'store'?

2007-06-25 Thread James liu
for example, i wanna sort by datetime, does it have to be store='true', and i wanna define it am i right? if right, iwanna define score like that and how to define it or maybe it was if my field all use index=true, stored=false, does it means low disk io and more ram used? how can i use it

Re: i wanna change response type to PHP serialize

2007-06-25 Thread Nick Jenkin
I am also quite interested in getting a serialized PHP array response writer, after some investigation it doesn't seem as difficult as I first thought, I will have a try at implementing this when I get some time, the format of the array would probably end up being the same as if you were to use js

AW: Highlighting in large text fields

2007-06-25 Thread Burkamp, Christian
Hi Mike, Thanks for the quick help. I just added a call to Highlighter.setMaxDocBytesToAnalyze() to my local copy of the HighlightingUtil.java and it worked all right. It would be great to have the limit for the docBytesToAnalyze configurable in solrconfig.xml. (But it's out of scope for me to

Re: add CJKTokenizer to solr

2007-06-25 Thread Chris Hostetter
: : : I think this way, the config terms are a bit clearer... What do you think? in general, do i think it would be better if the and declarations used "factory" as the attribute instead of "class"? ...yes. So i think it makes sense to change this now? ... i don't know. the backward compatib

Re: Re[2]: How to do a fuzzy query

2007-06-25 Thread Erik Hatcher
On Jun 25, 2007, at 3:43 PM, Jack L wrote: MoreLikeThis is interesting. So in order to use it through the MoreLikeThisHandler, I should use the unique field in the "q" param to uniquely identify the "this" document? Or, does it also support a more common query and works as "More Like These" just

Re[2]: How to do a fuzzy query

2007-06-25 Thread Jack L
Hello Erik, MoreLikeThis is interesting. So in order to use it through the MoreLikeThisHandler, I should use the unique field in the "q" param to uniquely identify the "this" document? Or, does it also support a more common query and works as "More Like These" just like using this feature through

Re: Solr - autocommit params

2007-06-25 Thread Mike Klaas
On 25-Jun-07, at 8:02 AM, Daniel Alheiros wrote: I've configured my Solr instance using autocommit in the following way: 1000 6 But it’s only considering the maxtime now. I’ve used the maxdocs before and it worked, but after I defined both, on

Re: Solr - autocommit params

2007-06-25 Thread Mike Klaas
On 25-Jun-07, at 8:02 AM, Daniel Alheiros wrote: Hi I've configured my Solr instance using autocommit in the following way: 1000 6 But it’s only considering the maxtime now. I’ve used the maxdocs before and it worked, but after I defined bo

Re: Highlighting in large text fields

2007-06-25 Thread Mike Klaas
On 25-Jun-07, at 4:59 AM, Burkamp, Christian wrote: Hi list, Highlighting does not work for words that are not located near the beginning of a text field. In my index the whole text is stored in a text field for highlighting purpose. This field is just stored but not indexed. The maxFieldLength

Re: Date range problem

2007-06-25 Thread Stu Hood
Ok, the full time format works fine (and quickly too). Thanks for the quick answers!Stu-Original Message-From: Ryan McKinley <[EMAIL PROTECTED]>Sent: Mon, June 25, 2007 1:19 pmTo: solr-user@lucene.apache.orgSubject: Re: Date range problemthe solr date format is a bit more strict (ISO 8601)y

Re: Date range problem

2007-06-25 Thread Ryan McKinley
the solr date format is a bit more strict (ISO 8601) -MM-dd'T'HH:mm:ss.SSS there is talk of a more lienent date parser, but nothing exists yet.. The format you suggest would be ok if you index your dates as a string '20070101' and then use a range query. Stu Hood wrote: Hello, Searc

Re: Date range problem

2007-06-25 Thread Michael Kimsal
I've only been able to get date/time stuff to work when the entire full date/time format is used 2007-05-30T12:34:56Z Or is there a + in there too? On 6/25/07, Stu Hood <[EMAIL PROTECTED]> wrote: Hello, Searching by date ranges doesn't seem to work in the example Solr install. A query li

Date range problem

2007-06-25 Thread Stu Hood
Hello,Searching by date ranges doesn't seem to work in the example Solr install. A query like `timestamp:[20070101 TO 20080101]` returns: message Invalid Date String:'20070101'description The request sent by the client was syntactically incorrect (Invalid Date String:'20070101').That query should b

Re: MoreLikeThis woes

2007-06-25 Thread Ryan McKinley
Andrew Nagy wrote: Hello, I have been playing off and on with the more like this patch and I really want to get it working well. I have the patch installed and I have about 500K bibliographic records in my solr index. My MLT query uses a fieldlist of about 5 or 6 fields. There are a mix of

Re: Use Windows 1252 encoding...

2007-06-25 Thread Walter Underwood
This is proper behavior according to RFC 3023. An encoding in the XML declaration is ignored unless the content-type is application/xml. wunder On 6/25/07 8:27 AM, "Yonik Seeley" <[EMAIL PROTECTED]> wrote: > On 6/23/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: >> >> : Is it possible to use W

Re: Use Windows 1252 encoding...

2007-06-25 Thread Yonik Seeley
On 6/23/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: : Is it possible to use Windows 1252 encoding instead of UTF-8 for Solr ? The not at the moment... https://issues.apache.org/jira/browse/SOLR-96 Solr 1.2 should be able to accept alternate charsets if declared in the HTTP headers (Conten

Re: MoreLikeThis woes

2007-06-25 Thread Brian Whitman
My MLT query uses a fieldlist of about 5 or 6 fields. There are a mix of string and text fields. They are all in a TermVector. I have played around with the mindf values. With about 90% of my mlt queries solr it returns no matches and the remaining 10% get completely irrelevant results.

MoreLikeThis woes

2007-06-25 Thread Andrew Nagy
Hello, I have been playing off and on with the more like this patch and I really want to get it working well. I have the patch installed and I have about 500K bibliographic records in my solr index. My MLT query uses a fieldlist of about 5 or 6 fields. There are a mix of string and text fiel

Solr - autocommit params

2007-06-25 Thread Daniel Alheiros
Hi I've configured my Solr instance using autocommit in the following way: 1000 6 But it¹s only considering the maxtime now. I¹ve used the maxdocs before and it worked, but after I defined both, only the maxtime is being considered. Is it a known b

Re: add CJKTokenizer to solr

2007-06-25 Thread Daniel Alheiros
Or I think this way, the config terms are a bit clearer... What do you think? Regards, Daniel On 22/6/07 20:45, "Chris Hostetter" <[EMAIL PROTECTED]> wrote: > > : What would be the best way to not hide their use? > : > : > > How about just... > > > > > > -Hoss > http://www.bbc.co.

Re: i wanna change response type to PHP serialize

2007-06-25 Thread Tristan Vittorio
I am also looking for a PHP response writer that outputs serialized PHP code, I've taken a look at SOLR-196but it's not quite what I need. Unless anyone else has started implementing one, I will see if I can modify Paul's patch to do the task. cheer

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

2007-06-25 Thread Tristan Vittorio
Rather than re-inventing the wheel with fsockopen, why don't you use an existing HTTP client implementation written in PHP: http://pear.php.net/package/HTTP_Client http://framework.zend.com/manual/en/zend.http.html http://scripts.incutio.com/httpclient/ http://www.phpclasses.org/browse/package/57

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

2007-06-25 Thread Kijiji Xu, Ping
In our product environment, there haven't curl and pecl lib,so... If the fsockopen could solve post xml data,I would like to use it.And I tried it, but I failed. -Original Message- From: Michael Kimsal [mailto:[EMAIL PROTECTED] Sent: 2007年6月25日 20:16 To: solr-user@lucene.apache.org Subje

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

2007-06-25 Thread Michael Kimsal
Using PHP5 (5.1 or higher I think) http://us.php.net/manual/en/function.http-post-fields.php is available. From the example on that page: $fields = array( 'name' => 'mike', 'pass' => 'passwordt' ); $response = http_post_fields("http://www.example.com/";, $fields); Looks pretty simple,

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

2007-06-25 Thread Kijiji Xu, Ping
What about fsockopen, Or any other simple method? Thanks -- Regards Xp from china

Highlighting in large text fields

2007-06-25 Thread Burkamp, Christian
Hi list, Highlighting does not work for words that are not located near the beginning of a text field. In my index the whole text is stored in a text field for highlighting purpose. This field is just stored but not indexed. The maxFieldLength was set to 10. The document content can be retriev

Re: i wanna change response type to PHP serialize

2007-06-25 Thread Michael Kimsal
My experience tells me that serializing/unserializing tends to be faster than eval(), especially on larger arrays. I've looked at the code, trying to put together a PHP serialized array output type, but haven't had success doing it yet. If I do, it'll be contributed back, but until someone does

Re: i wanna change response type to PHP serialize

2007-06-25 Thread James liu
i use stupid way just to create file by your patch. and compile is ok when i test it and start tomcat,,,i can see solr admin interface. but when i search something.. it show me 2007-6-25 15:15:37 org.apache.solr.core.SolrException log 严重: java.lang.NoClassDefFoundError: org/apache/solr/search/S