: city in the Republic of Georgia).  I've already written an efficient lookup
: function.  I just don't know how to call it during analysis because I don't
: know how to access an instance of SolrCore from within a token filter
: object.

There were reasons why we didn't make analysis factories 
SolrCoreAware(able) - but off hte top of my head i don't remember exactly 
what they were, you'd have to check the jira comments (i think it was a 
chicken/egg bootstraping problem)

In general, it sounds like a better place to solve your problem might be 
to implement an UpdateRequestProcessorFactory that generates an 
UpdateRequestProcessor with a processAdd that mutates the "Place" field of 
the SolrInputDocuments on the fly using your lookup approach -- the 
UpdateRequestProessorFactory is not only inited using a SolrCore, but it 
is also given a SolrQueryRequest opject on each getInstance() call, so you 
can get the get access the core that way as well (and have no state).

if you search for the "local solr" plugin (i don't remember where it's 
hosted) they've got a great example of an UpdateRequestProcessor that 
modifies documents before passing them on to the low level updater.



-Hoss

Reply via email to