How does Scoring Documents in App Engine Search API affect price?

41 views
Skip to first unread message

Akash Eldo

unread,
Jul 21, 2019, 3:53:55 PM7/21/19
to Google App Engine
In this documentation: https://cloud.google.com/appengine/docs/standard/java/search/options#sortoptions

It says that using the MatchScorer for scoring documents can be expensive in billable operations. However, I don't understand how if affects billing. From what I understand, the Search API is billed by the number of queries, regardless of how computationally intensive they are or how long they take. How does it affect billable operations?

David (Cloud Platform Support)

unread,
Jul 22, 2019, 4:47:12 PM7/22/19
to Google App Engine

Hello,


Scoring documents can be expensive in terms of billable operations and execution time, but it is not always the case. As it depends on the document and term you are searching. The reason of expensive is the extra processing in sorting the value as per the frequency of the search terms. If you turn off the match scoring then in that case, search will use the default order of the sort expression class which is descending.

Akash Eldo

unread,
Jul 22, 2019, 5:21:38 PM7/22/19
to Google App Engine
Yes but how is it billed? I can't find any documentation on billing per resource usage for the search API.

David (Cloud Platform Support)

unread,
Jul 23, 2019, 2:33:34 PM7/23/19
to Google App Engine
You can find the pricing for the search API in this link. For more information about pricing, please see this link as well.
Reply all
Reply to author
Forward
0 new messages