Re: customer request handler doesn't envok the query tokenization chain

2007-11-05 Thread Yu-Hui Jin
Thanks, Yonik. Just curious, does the default operator ( AND or OR) specify the relationship between a field/value component or between the tokens of the same field/value componenet? e.g. for a query like this: field1:abc field2:xyz does the operator connect field1:abc and field2:xyz , or

where to hook in to SOLR to read field-label from functionquery

2007-11-05 Thread Britske
My question sounds strange I know, but I'll try to explain: Say I have a custom functionquery MinFloatFunction which takes as its arguments an array of valuesources. MinFloatFunction(ValueSource[] sources) In my case all these valuesources are the values of a collection of fields. What I need

how to use PHP AND PHPS?

2007-11-05 Thread James liu
i find they all return string ?php $url = ' http://localhost:8080/solr/select/?q=solrversion=2.2start=0rows=10indent=onwt=php '; var_dump(file_get_contents($url); ? -- regards jl

Re: how to use PHP AND PHPS?

2007-11-05 Thread Dave Lewis
On Nov 5, 2007, at 8:56 AM, Robert Young wrote: I would imagine you have to unserialize On 11/5/07, James liu [EMAIL PROTECTED] wrote: i find they all return string ?php $url = ' http://localhost:8080/solr/select/? q=solrversion=2.2start=0rows=10indent=onwt=php ';

Re: customer request handler doesn't envok the query tokenization chain

2007-11-05 Thread Yonik Seeley
On 11/5/07, Yu-Hui Jin [EMAIL PROTECTED] wrote: Just curious, does the default operator ( AND or OR) specify the relationship between a field/value component or between the tokens of the same field/value componenet? between any clauses in a boolean query. e.g. for a query like this:

Re: Phrase Query Performance Question and score threshold

2007-11-05 Thread Yonik Seeley
On 11/5/07, Haishan Chen [EMAIL PROTECTED] wrote: As for the first issues. The number of different phrase queries have performance issues I found so far are about 10. If these are normal phrase queries (no slop), a good solution might be to simply index and query these phrases as a single

Re: how to use PHP AND PHPS?

2007-11-05 Thread James liu
first: i m sure i enable php and phps in my solrconfig.xml two: i can't get answer. *phps: *?php $url = ' http://localhost:8080/solr1/select/?q=2version=2.2start=0rows=10indent=onwt=phps '; $a = file_get_contents($url); echo 'before unserializebr/'; var_dump($a); $a = unserialize($a); echo

Re: specify index location

2007-11-05 Thread evol__
Thanks Grant. Solrconfig.xml was the first place I looked into, but somehow missed it *scratches head*... Just a remark: !-- Used to specify an alternate directory to hold all index data other than the default ./data under the Solr home. If replication is in use, this should

Re: specify index location

2007-11-05 Thread Yonik Seeley
On 11/5/07, evol__ [EMAIL PROTECTED] wrote: Just a remark: !-- Used to specify an alternate directory to hold all index data other than the default ./data under the Solr home. If replication is in use, this should match the replication configuration. -- Might be a good idea

Score of exact matches

2007-11-05 Thread Papalagi Pakeha
Hi all, I use Solr 1.2 on a job advertising site. I started from the default setup that runs all documents and queries through EnglishPorterFilterFactory. As a result for example an ad with accounts in its title is matched when someone runs a query for accountant because both are stemmed to the

value boosts? (boosting a multiValued field's data)

2007-11-05 Thread evol__
Hi. Is the expansion method described in the following year old post still the best available way to do this? http://www.nabble.com/newbie-Q-regarding-schema-configuration-tf1814271.html#a4956602 The way I understand it, indexing these field name=foo boost=1.0First val/field field

Re: value boosts? (boosting a multiValued field's data)

2007-11-05 Thread Yonik Seeley
On 11/6/07, evol__ [EMAIL PROTECTED] wrote: Hi. Is the expansion method described in the following year old post still the best available way to do this? http://www.nabble.com/newbie-Q-regarding-schema-configuration-tf1814271.html#a4956602 The way I understand it, indexing these field

Re: Score of exact matches

2007-11-05 Thread Mike Klaas
On 5-Nov-07, at 9:05 PM, Papalagi Pakeha wrote: Hi all, I use Solr 1.2 on a job advertising site. I started from the default setup that runs all documents and queries through EnglishPorterFilterFactory. As a result for example an ad with accounts in its title is matched when someone runs a

Re: Score of exact matches

2007-11-05 Thread Walter Underwood
This is fairly straightforward and works well with the DisMax handler. Indes the text into three different fields with three different sets of analyzers. Use something like this in the request handler: requestHandler name=multimatch class=solr.DisMaxRequestHandler lst name=defaults

Re: Tomcat JNDI Settings

2007-11-05 Thread Chris Hostetter
: Context docBase=/var/lib/tomcat5/solr/apache-solr-1.2.0.war debug=0 : crossContext=true :Environment name=solr/home type=java.lang.String : value=/var/lib/tomcat5/solr/home override=true / : /Context : SEVERE: Exception starting filter SolrRequestFilter class :

Re: solr instances for different content?

2007-11-05 Thread Chris Hostetter
: I don't think that will solve the relevance issues, given that the IDF : (described at : http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/javadoc/org/apache/lucene/search/Similarity.html) : is per document, not per field. In the end, though, it may be negligible. well .. yes,

Re: sorting on dynamic fields - good, bad, neither?

2007-11-05 Thread Chris Hostetter
: Each element of the cached array is a ... what? The ID of the the elements of the array are the values, the indexes into the array are the document IDs ... esentailly it's inverted-inverted-index. : document? (I'll be happy to answer this myself by reading the source : code, but I'm not