python - Boto CloudSearch Searchable documents count -


I was wondering how bots are used to find searchable documents? When I try:

  import boto.cloudsearch boto.cloudsearch.domain import domain conn = boto.cloudsearch.connect_to_region ("us-east-1") domain = domain (conn , Conn. Description_domains () [0]) print domain.num_searchable_docs   

I get

  boto.exception.BotoServerError: BotoServerError: 401 unauthorized & lt ; ErrorResponse xmlns = "http://cloudsearch.amazonaws.com/doc/2011-02-01/"> & Lt; Error & gt; & Lt; Type & gt; Sender & lt; / Type & gt; & Lt; Code & gt; NotAuthorized & lt; / Code & gt; & Lt; / Error & gt; & Lt; RequestId> 3a8f8731-137a-11e4-9620-892c28eddd75 & lt; / RequestId> & Lt; / ErrorResponse & gt;   

and in the cloudsearch2.domain.Domain the num_searchable_docs field is not

q = equalall and q.parser = structured and size = 0 , so with the booto it would be low. B2B2.layer2 import from layer2 layer2 = layer2 () domain = layer2.lookup ('my-domain') search = Domain.get_search_service () result = search.search (q = 'matchall', parser = 'structured', Size = 0) Return results are

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -