In my application, I'd like the search API to value a match in the name
field, higher than a match in the other fields.
A user can also fill in an 'about' message, which has way more text, so it could be more likely that a match happens there. Is there any way to do this?
SortExpression (https://developers.google.com/appengine/docs/python/search/sortexpressionclass) provides a way to set the sort based on a particular expression, but it only offers a document-wise score (i.e. not per field).
Another (probably bad idea) is to search only by name field, using a query string like "name: my_search_term_here"
So from my knowledge Search API of Google App Engine offers no way to bias one field during search (i.e. similar to the ^ operator in ApacheSolr Lucene).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With