solr seach by string with php

60 views
Skip to first unread message

Gyanendra Pandey

unread,
Nov 28, 2015, 4:40:32 PM11/28/15
to PHP Solr Client
Hi,
           I am using solr for searching with php but now i am facing one problem

Search  strings  : philips led bub

I want set search priority every string separate like  bub priority  is 8 ,  led  priority  is 7 and  philips priority  is 6

how can solve this issue 

Please find  solr Versions detail

Versions

  • solr-spec
    4.7.2
  • solr-impl
    4.7.2 1586229 - rmuir - 2014-04-10 09:27:27
  • lucene-spec
    4.7.2
  • lucene-impl
    4.7.2 1586229 - rmuir - 2014-04-10 09:00:35

Donovan Jimenez

unread,
Nov 28, 2015, 4:50:42 PM11/28/15
to php-sol...@googlegroups.com
You can use the query boost syntax for each term like pillips^6.0 led^7.0 bub^8.0  if the query parser you have configured in solr supports it. for example, I know extended dismax parser supports it. You'll probably want to play with the boosts until you see the results ranked as you like.



--
You received this message because you are subscribed to the Google Groups "PHP Solr Client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-solr-clie...@googlegroups.com.
To post to this group, send email to php-sol...@googlegroups.com.
Visit this group at http://groups.google.com/group/php-solr-client.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages