Re: custom sorting

2007-10-26 Thread Doug Daniels
If you went with the FunctionQuery approach for sorting by distance, would there be any way to use the output of the FunctionQuery to limit the documents to those within a certain radius? Or is it just for boosting documents, not for filtering? Also, even if you're just using it for boosting, is

Re: A question about solr score

2007-10-26 Thread Chris Hostetter
: It's trivial for the client to normalize if desired - take the top scoring : document, if it's greater than 1.0 then scale all scores based on that. this is why doclists include the "maxScore" in their output as well, to make it easy to normalize scores even if you are using pagination (or so

Changing source data during indexing

2007-10-26 Thread Craig A Plesco
Does anyone know of a way to have an index analyzer factory affect the contents of the actual data (versus the contents of the index)? Another example would be noting a pattern within a field and then setting a "flag" field to a particular value, but wanting that value to be returned as data (n

Re: CollectionDistribution - Changes reflected immediately on master, but only after tomcat restart on slave

2007-10-26 Thread Yonik Seeley
On 10/26/07, Karen Loughran <[EMAIL PROTECTED]> wrote: > But after distribution of this latest snapshop to the slave the collection > does not show the update (with solr admin query url or via java query client) > UNLESS I restart tomcat ? Sounds like a config issue with the scripts... pulling the

Re: CollectionDistribution - Changes reflected immediately on master, but only after tomcat restart on slave

2007-10-26 Thread Otis Gospodnetic
Hi Karen, snappuller and snapinstaller can be run by hand. I'd try that and I'd check the logs to see what went wrong. Also look at the index directory on the slaves and make sure that the files there match what you see on the master. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr

Re: Date range problems

2007-10-26 Thread Otis Gospodnetic
Hi David, I'd start by: - having a look a the index with Luke (or via some code that just dumps the content of that created_date field), so I can be 100% sure that the right stuff is in it to begin with - 0 results makes me think that index-time and search-time tokenization might be different,

Re: phrase query performance

2007-10-26 Thread Yonik Seeley
The differences lie in Lucene. Instead of thinking of phrase queries as slow, think of term queries as fast :-) Phrase queries need to read and consider position information that term queries do not. -Yonik On 10/26/07, Haishan Chen <[EMAIL PROTECTED]> wrote: > I am a new Solr user and wonder if

Date range problems

2007-10-26 Thread David Whalen
Hi All. We're seeing a really interesting problem when searching by date range. We have two fields of type "date" in our index (they are both indexed and stored). They are: content_date and created_date We can run any date-range query we want against content_date and we get expected results

Re: solr-139: support for adding fields which are not known at design-time?

2007-10-26 Thread Erik Hatcher
Yes, you can add new fields to existing documents with SOLR-139. As for SOLR-139 status - it's a bit stalled as far as I know. It would be a wonderful addition to Solr, and hopefully available in Solr 1.3, but the approach taken in the existing patches is something I believe will be rework

Re: A question about solr score

2007-10-26 Thread Erik Hatcher
Solr returns the raw score, not the Lucene Hits normalized one. It's trivial for the client to normalize if desired - take the top scoring document, if it's greater than 1.0 then scale all scores based on that. Erik On Oct 26, 2007, at 2:53 AM, zx zhang wrote: Hi, everyone! As w

RE: Performance Recommendation

2007-10-26 Thread Wagner,Harry
Thank Erik, That fixed the problem. Cheers! harry -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 4:41 PM To: solr-user@lucene.apache.org Subject: Re: Performance Recommendation On Oct 25, 2007, at 4:19 PM, Wagner,Harry wrote: > Where is

CollectionDistribution - Changes reflected immediately on master, but only after tomcat restart on slave

2007-10-26 Thread Karen Loughran
Hiya, I have set up solr CollectionDistribution between a master and a slave with postCommit triggering snapshooter, and a cron job (snappuller and snapinstaller) on the slave accepting and installing updated snapshops every 15 minutes. Once I delete a record from the master (with java code

solr-139: support for adding fields which are not known at design-time?

2007-10-26 Thread Britske
is it / will it be possible to add priorly non-existing fields to a document with the upcoming solr-139? for instance, would something like this work? 318127 12 with schema.xml: ... ... ... btw: how is solr-139 coming along? By judging the latest posts on jira, there was still a lot

copyField with functionquery as source

2007-10-26 Thread Britske
is it possible to have a CopyField with a functionquery as it's source? for instance : If not, I think this would make a nice addition. thanks, Geert-Jan -- View this message in context: http://www.nabble.com/copyField-with-functionquery-as-source-tf4696019.html#a13423343 Sent from t

Phrase Query Performance Question

2007-10-26 Thread Haishan Chen
I am a new Solr user and wonder if anyone can help me these questions. I used Solr to index about two million documents and query on it using standard request handler. I disabled all cache. I found phrase query was substantially slower than the usual query. The statistic I collected is as follo