lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stockii <st...@shopgate.com>
Subject requesthandler, variable ...
Date Wed, 09 Jun 2010 11:07:30 GMT

Hello.

i want to call the termscomponent with this request: 
http://host/solr/app/select/?q=har

i want the same result when i use this request:
http://host/solr/app/terms/?q=har&terms.prefix=har
--><lst name="terms">
<lst name="suggest">
<int name="hardcore">9</int>
<int name="hardcore evo">9</int>
<int name="hardcore evo 2010">9</int>
...


. this is my solrconfig.xml requestHandler

<searchComponent name="termsComponent"
class="org.apache.solr.handler.component.TermsComponent"/>
   
   <requestHandler name="standard"
class="org.apache.solr.handler.component.SearchHandler">  
		 <lst name="defaults">
			<str name="qt">terms</str>			
		 </lst>		
		<arr name="components">
		  <str>termsComponent</str>
		</arr>
   </requestHandler>
     
	 <!-- qt=terms -->
   <requestHandler name="terms"
class="org.apache.solr.handler.component.SearchHandler">
     <lst name="defaults">
      <bool name="terms">true</bool>
		<str name="terms.fl">suggest</str>
		<str name="terms.sort">index</str>
		<str name="terms.prefix"><str name="q"/></str>
    </lst>     
    <arr name="components">
      <str>termsComponent</str>
    </arr>
  </requestHandler>


it this possible ? <str name="terms.prefix"><str name="q"/></str> 

or ho can i put the q-value on the place of term.prefix ?
-- 
View this message in context: http://lucene.472066.n3.nabble.com/requesthandler-variable-tp881906p881906.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message