No, this is not possible. A similarity is an index time setting because it can 
have index time properties. There is no way to control this query time.

M

 
 
-----Original message-----
> From:Farida Sabry <faridasa...@gmail.com>
> Sent: Saturday 21st January 2017 9:58
> To: solr-user@lucene.apache.org
> Subject: Solrj similarity setting
> 
> Is there a way to set the similarity in Solrj query search like we do for
> lucene IndexSearcher e.g. searcher.setSimilarity(sim);
> I need to define a custom similarity and at the same time get the fields
> provided by SolrInputDocument in the returned results by
> SolrDocumentList results =  QueryResponse response.getResults()
> 
> Any clues how to do that?
> 

Reply via email to