Hi
I would appreciate if someone can throw some light on the following point
regarding proximity search.
i have a search box and if a use comes and type in "honda car" WITHOUT any
double quotes, i want to get all documents with matches, and also they
should be ranked based on proximity. i.e. the more the two terms are nearer
the more is the rank. 
>From the admin looks like in order to test proximity i have to always give
the word in double quote and a slop value
http://localhost:8983/solr/select/?q="honda+car"~12&version=2.2&start=0&rows=10&indent=on

Hence looks like from admin point of view in order to do proximity i have to
always give it in double quotes.

My questions is in order to do proximity search we always have to pass the
query as a phrase ie. in double quotes.

The next question is that i thought using dismax handler i could do a search
on a field and i can specify the ps value in order to define proximity.

Here is my request handler decleration
   <requestHandler name="/proxTest" class="solr.SearchHandler">
    <lst name="defaults">
      <str name="defType">dismax</str>
      <str name="qf">text</str>
      <str name="ps">6</str>
      <str name="pf">text</str>
      <str name="fl">*</str>
      <str name="spellcheck">true</str>
      <str name="spellcheck.onlyMorePopular">false</str>
      <str name="spellcheck.extendedResults">true</str>
      <str name="spellcheck.collate">true</str>
    </lst>
  </requestHandler>

and here are my documents, i am loading just three documents in my index to
test this
<doc>
  <field name="id">Honda:1</field>
  <field name="make">Honda</field>
  <field name="model">Civic</field>
  <field name="carDescription_t">Honda civic is a nice car. this car won the
award at LA auto show</field>
  <field name="text">Honda civic is a nice car.</field>
</doc>
<doc>
  <field name="id">Honda:2</field>
  <field name="make">Honda</field>
  <field name="model">CRV</field>
  <field name="carDescription_t">Honda is a nice car. This car won the best
award at Detroit car show</field>
  <field name="text">Honda CRV is a midsize suv and this comes in the
category of car.</field>
</doc>
<doc>
  <field name="id">Honda:3</field>
  <field name="make">Honda</field>
  <field name="model">Pilot</field>
  <field name="carDescription_t">nothing</field>
  <field name="text">Honda Pilot car. No matter where you go, on any terrain
a four wheel honda pilot will give you the most amazing driving
experience</field>
</doc>

and this is the query i am giving and i get back no results. any advice
where i am going wrong

http://localhost:8983/solr/proxTest/?q="honda car"

Thanks
darniz


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

Reply via email to