lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From darniz <rnizamud...@edmunds.com>
Subject Common Solr Question
Date Thu, 20 Aug 2009 19:15:51 GMT

Hi 
i have some basic yet important question about solr and that too with
terminology.
I want to be crystal clear about it.
Please answer the following questions.

Question 1
1) "Incoming queries are processed by the appropriate SolrRequestHandler.
For the purposes of this discussion, you will use the
StandardRequestHandler"
So i assume all request which we make like 
--For select
http://dl1rap711-epe.media.edmunds.com:8983/solr/select/?q=make%3AHonda&version=2.2&start=0&rows=10&indent=on

the question is where is it defined in solrconfig.xml. if i have to change
the default size for my result set from 10 to for example say 50 where
should i change it.
i tried to do this
<requestHandler name="standard" class="solr.SearchHandler" default="true">
 <!--  default values for query parameters  --> 
  <lst name="defaults">
  <str name="echoParams">explicit</str> 
  <int name="rows">55</int> 
-<!-- 
       <str name="fl">*</str>
       <str name="version">2.1</str>
--> 
  </lst>
  </requestHandler>
But did not work.

Question 2
2)
When we issue  an update command something like this
http://localhost:8983/solr/update?stream.body=<add><doc><field%20name="year">2007</field><field%20name="make">Hyundai</field><field%20name="model">Sonata</field></doc></add>

The following request handler will be used which is mentioned in the
solrconfig.xml file
<requestHandler name="/update" class="solr.XmlUpdateRequestHandler"/>
Is this correct.


Question 3
3) To upload CSV data we need to use /update/csv handler.
I would appreciate how to specify this in the url if i have to upload a csv
file.

Question 4
3)If this is the case, every url request is mapped to a request handler.
For load csv file use /update/csv which is implemented by
solr.CSVRequestHandler
For analysis file use /analysis which is implement by
solr.AnalysisRequestHandler

For now this is it.
More to follow

Thanks



-- 
View this message in context: http://www.nabble.com/Common-Solr-Question-tp25068160p25068160.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message