How to Boost the document with following conditions


(jsbonline2006) #1

HI,

I want to boost the documents based on following conditions:
So could you please help me out in the query syntax for each of the
following.
I am using ES 0.90.7

  1. Higher boost if Search keyword appears at the start of title.
    Example: If I am searching for "Rum Cake"
    Then Title1 should get higher boosting than Title2

Title1: "Rum Cakes are always good in Taste"
Title2: "I Love Rum Cakes"


  1. Higher weightage to "frequently asked questions" word in the title and
    Higher weightage to "technical Specifications" word in the title

If the search keyword is the complete title itself than it has higher
priority than the title which has the search keyword along with some of the
other words
Example: If I am searching for "Rum Cake"
Then Title1 should get higher boosting than Title2

Title1: "Rum Cakes"
Title2: "I Love Rum Cakes"

Please let me know if the above 3 rules can be configured in elasticsearch
or not?
If Yes, Could you please explain them in form of queries.

Regards,
Jayesh Bhoyar

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0481d882-1fc8-4c84-9660-aee0f8f4007a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(jsbonline2006) #2

Hi Team,

Any update on this query?

Regards,
Jayesh Bhoyar

On Friday, December 27, 2013 3:29:32 PM UTC+5:30, Jayesh Bhoyar wrote:

HI,

I want to boost the documents based on following conditions:
So could you please help me out in the query syntax for each of the
following.
I am using ES 0.90.7

  1. Higher boost if Search keyword appears at the start of title.
    Example: If I am searching for "Rum Cake"
    Then Title1 should get higher boosting than Title2

Title1: "Rum Cakes are always good in Taste"
Title2: "I Love Rum Cakes"


  1. Higher weightage to "frequently asked questions" word in the title and
    Higher weightage to "technical Specifications" word in the title

If the search keyword is the complete title itself than it has higher
priority than the title which has the search keyword along with some of the
other words
Example: If I am searching for "Rum Cake"
Then Title1 should get higher boosting than Title2

Title1: "Rum Cakes"
Title2: "I Love Rum Cakes"

Please let me know if the above 3 rules can be configured in elasticsearch
or not?
If Yes, Could you please explain them in form of queries.

Regards,
Jayesh Bhoyar

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/78296a01-c04e-4822-a346-5712f98cb9db%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(David Pilato) #3

You can try playing with boost but in your case function score feature could be more appropriate.

HTH

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 30 déc. 2013 à 06:14, Jayesh Bhoyar jsbonline2006@gmail.com a écrit :

Hi Team,

Any update on this query?

Regards,
Jayesh Bhoyar

On Friday, December 27, 2013 3:29:32 PM UTC+5:30, Jayesh Bhoyar wrote:

HI,

I want to boost the documents based on following conditions:
So could you please help me out in the query syntax for each of the following.
I am using ES 0.90.7

  1. Higher boost if Search keyword appears at the start of title.
    Example: If I am searching for "Rum Cake"
    Then Title1 should get higher boosting than Title2

Title1: "Rum Cakes are always good in Taste"
Title2: "I Love Rum Cakes"


  1. Higher weightage to "frequently asked questions" word in the title and
    Higher weightage to "technical Specifications" word in the title

If the search keyword is the complete title itself than it has higher priority than the title which has the search keyword along with some of the other words
Example: If I am searching for "Rum Cake"
Then Title1 should get higher boosting than Title2

Title1: "Rum Cakes"
Title2: "I Love Rum Cakes"

Please let me know if the above 3 rules can be configured in elasticsearch or not?
If Yes, Could you please explain them in form of queries.

Regards,
Jayesh Bhoyar

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/78296a01-c04e-4822-a346-5712f98cb9db%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/B5C62F3C-ED2E-48A5-8B8F-14D20A407AED%40pilato.fr.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4