Hello community,

during several thoughts about how to make scoring in Solr better, a lot of
times I wished that I can use precomputed data to influence score. However,
this data could change whenever there occurs a commit. That's why I can't
work with preprocessing while indexing the documents. I hope to solve this
problem with the help of a function Query that stores computed metadata in a
cache, if it isn't already computed.

I will call the whole thing functionQuery - but, if you say this should be
implemented as part of a request handler after reading it, please tell me
so. :)

My idea (and now I hope you can share some of your experiences):
I will implement a method that instantiates a SolrJ-client to send some
queries to the index. The responsed data is important to compute the needed
metadata for my functionQuery. 
Once the metadata is computed, I want to store it in a SolrCache.

- Here is my first question: I can't find any code-snippet that shows how to
deal with SolrCache - do you know some classes that implement caches which
get renewed after updating (and commiting) the index?

- Is it possible to create this cache while Solr is starting? If not, I
would think of a cronJob or something like that to warmUp the cache when
Solr starts the first time.

There is one problem when considering that I want to make the whole thing
reusable: If I want to use a SolrJ-client to send some queries, I want to
specify them in the solrconfig.xml instead of hardcoding them.
That's the pro for a request handler, I think - but I haven't got much
experiences with Solr's architecture.

Hopefully I will find some time at the weekend to have a try in implementing
this functionality in Solr.

Thank you in advance for every suggestion, reference, idea and thought.

Kind regards
- Mitch
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/RequestHandler-function-Query-with-Cache-implementation-tp757610p757610.html
Sent from the Solr - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to