Is there a way to give certain fields of a document weight in a full-text search in an application?

In my application, I would like the search API to match in a field namehigher than in other fields.

The user can also fill out an “o” message with more text, so most likely there will be a match. Is there any way to do this?

+5
source share
2 answers

SortExpression ( https://developers.google.com/appengine/docs/python/search/sortexpressionclass ) provides a way to set sorting based on a specific expression, but it offers only a documented estimate (i.e. not for the field).

(, ) , , ​​ "name: my_search_term_here"

, , API Google Google App Engine (.. ^ ApacheSolr Lucene).

+3

Google AppEngine. , . , , list1. . , list2. , .. 3, list1 list2, 1 2. , .

0

All Articles