lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley @MITRE.org" <DSMI...@mitre.org>
Subject Re: search by some functionality
Date Wed, 07 Oct 2009 02:51:20 GMT

Maybe I'm missing something, but function queries aren't involved in
determining whether a document matches or not, only its score.  How is a a
custom function / value-source going to filter?

~ David Smiley


hossman wrote:
> 
> 
> : I read about this chapter before. It did not mention how to create my
> : own customized function.
> : Can you point me to some instructions?
> 
> The first step is to figure out how you can code your custom functionality 
> as an extension of the ValueSource class...
> 
> http://lucene.apache.org/solr/api/org/apache/solr/search/function/ValueSource.html
> 
> ...which has to be able to generate DocValues implementation for an 
> IndexReader.  DocValues is where you would some numeric score for each 
> document based on whatever criteria you wanted (including arguments passed 
> in when your ValueSource is constructed, like field names and constants)
> 
> Then you need a simple ValueSourceParser class to be able to specify when 
> to use your ValueSource, and that's what you register in solrconfig.xml...
> 
> http://wiki.apache.org/solr/SolrPlugins#ValueSourceParser
> 
> 
> 
> -Hoss
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/search-by-some-functionality-tp25721533p25779702.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message