Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Sorting
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Raphi  
View profile   Translate to Translated (View Original)
 More options Jul 31 2012, 1:53 pm
From: Raphi <raphael.dague...@gmail.com>
Date: Tue, 31 Jul 2012 10:53:05 -0700 (PDT)
Local: Tues, Jul 31 2012 1:53 pm
Subject: Sorting

Salut,

est-il possible de trier les resultats en fonction de plusieurs champs sans
faire une recherche sur ces champs?

Petit exemple pour etre plus clair:

mappings:
     name:            
     description:      
     creationDate:    
     nbMembers:
     nbComments:

Je souhaite chercher les docs ayant dans leur nom ou description un certain
term et ensuite trier les resultats en fonction de leurs attributs
nbMembers et nbComments.
Et ca serait parfait si on pouvait attribuer un boost aux champs nbMembers
et nbComments. Est-ce possible?

Merci


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jérôme Mainaud  
View profile   Translate to Translated (View Original)
 More options Jul 31 2012, 4:57 pm
From: Jérôme Mainaud <jer...@mainaud.com>
Date: Tue, 31 Jul 2012 22:57:11 +0200
Local: Tues, Jul 31 2012 4:57 pm
Subject: Re: [elasticsearch-fr] Sorting

Oui, en ajout une expression sort dans ta requête :
http://www.elasticsearch.org/guide/reference/api/search/sort.html

--
Jérôme Mainaud
jer...@mainaud.com

Le 31 juillet 2012 19:53, Raphi <raphael.dague...@gmail.com> a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Raphi  
View profile   Translate to Translated (View Original)
 More options Aug 1 2012, 10:12 am
From: Raphi <raphael.dague...@gmail.com>
Date: Wed, 1 Aug 2012 07:12:23 -0700 (PDT)
Local: Wed, Aug 1 2012 10:12 am
Subject: Re: [elasticsearch-fr] Sorting

En fait, j'avais deja utilise sort mais je n'avais pas correctement typer
mes attributs en integer et donc le sort ne marchait pas.
Et pour regler le probleme du boost des attributs, j'ai finalement utilise
une custom score query:
http://www.elasticsearch.org/guide/reference/query-dsl/custom-score-q...

Merci!

Le mardi 31 juillet 2012 16:57:11 UTC-4, Jérôme Mainaud a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »