So I'll start with an ad hoc session manager within Solr. Where in Solr should I add such a service?


You may be able to get what you need with just installing something like clickstream:
 http://www.opensymphony.com/clickstream/

If you need to integrate custom user handling and solr requests, you are definatly in "solr - beyond the box" territory...

For session tracking, I am using a custom filter that extends SolrDispatchFilter. This overrides:

protected void execute( HttpServletRequest req, SolrRequestHandler handler, SolrQueryRequest sreq, SolrQueryResponse rsp) { // a custom filter could add more stuff to the request before passing it on.
    // for example: sreq.getContext().put( "HttpServletRequest", req );
    sreq.getCore().execute( handler, sreq, rsp );
  }

In that function, I add the logged in user to the request context and various custom handlers use that.

ryan

Reply via email to