: > depending on words in the query i select the correct urls by applying : > mathematical formulae. This result should be shown to the user in : > descending order. : > : > Now as i know that lucene has its own searcher : > which is used by solr as well. cant i replace this searcher part in : > SOLR by a java program that returns urls by my algorithm. Rest every : > thing should be of solr.
Solr has no mechanism for replacing the Searcher -- Solr relies on using it's own SolrIndexSearcher which is how all of that "Rest every hing should be of solr" is possible. : > Only change the searcher part. I have : > studied abt customizing the scoring which is absolutely not my aim.My You've described your goal as wanting to compute a numeric value you will sort on based on a mathematical result for each document/url based on the tf of the terms used -- that's pretty much the definition of scoring. In simpel fact: changing the Searcher won't really help you, since the Searcher isn't what computes the score anyway -- that's done by the Scorer instances that the Queyr obejcts produce -- so you could write a custom QParser that generates Query objects with Scorer's that generate your mathematical formula, or you could use a custom ValueSource (generate by a custom ValueSourceParser using hte function query syntax) to do the same calculation. -Hoss