lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Bell <billnb...@gmail.com>
Subject Re: custom ValueSource for decoding geohash into lat & lon
Date Sat, 12 Mar 2011 03:13:21 GMT
Cool.

I am definitely looking forward to that!!



On 3/11/11 3:25 PM, "Smiley, David W." <dsmiley@mitre.org> wrote:

>On Mar 10, 2011, at 6:21 PM, William Bell wrote:
>
>> 1. ValueSources does not support MultiValue fields.
>
>I think the problem isn't ValueSources, it's the FieldCache.  The
>FieldCache is fundamentally very limited to one indexed primitive value
>per document. I took a look at UninvertedField but that appears to be
>tied to faceting and it's not sufficiently flexible any way. I think I
>need to do, as UninvertedField does, create a cache registered in
>solrconfig.xml.  The other tricky bit is somehow accessing it.  I think I
>figured it out. In my field type's getValueSource(SchemaField field,
>QParser parser), the parser is a FunctionQParser implementation, which
>has access to SolrQueryRequest, which has access to SolrIndexSearcher,
>which allows me to lookup the cache by the name I choose.  That's quite a
>chain of indirection that took time to track down; I nearly gave up :-).
>
>~ David
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>For additional commands, e-mail: dev-help@lucene.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message