Re: [google-appengine] Error in search - AST is missing nil root

60 views
Skip to first unread message

Amy Unruh

unread,
Oct 3, 2012, 5:21:08 PM10/3/12
to google-a...@googlegroups.com
Paxti,

What does your final queryString look like? And, could you include a stack trace?
Also, are you seeing this with the dev app server, or for your deployed app?  

 -Amy

On 3 October 2012 20:20, Patxi Bocos <patx...@gmail.com> wrote:
Hi,

I´m using Google Search API and at the time of making the search:

QueryOptions options = QueryOptions.newBuilder().setLimit(limit).setOffset(offset).build;

queryString+="name:\""+name+"\"";

Query query = Query.newBuilder().setOptions(options).build(queryString);

Results<ScoredDocument> results = index.search(query); 

I´m getting a SearchQueryException saying the following:

AST is missing nil root name:"value"

Name is an existing field and I don´t know why am I getting this error.

Anyone could help me?

Thanks :)

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/ELJqZg9CU18J.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Patxi Bocos

unread,
Oct 4, 2012, 2:20:29 AM10/4/12
to google-a...@googlegroups.com, amyu+...@google.com
Hi,

as you said, this only happens when I am running locally, when I deployed on GAE it works.

Thank you :)

Amy Unruh

unread,
Oct 5, 2012, 1:10:01 AM10/5/12
to Patxi Bocos, google-a...@googlegroups.com
Paxti,

Thanks for the information.  Could you also post an example of a queryString that triggers this error, and the stack trace?  You can email to me directly if you'd prefer.

Patxi Bocos

unread,
Oct 5, 2012, 2:15:44 AM10/5/12
to google-a...@googlegroups.com, Patxi Bocos
Hi Amy,

the problem comes with any request. For example with a simple request like "key":"value".

But as I said, when I deployed it at GAE and using "complex" queries including AND and OR operators it works well.

I have another question: it appears that search is not working properly when a value for an specific key is a single character. So if I have a key "key" with a value containing "a b c" and my search is key:"a", then no result is returned.

Thanks for your attention :)

Amy Unruh

unread,
Oct 5, 2012, 6:35:55 PM10/5/12
to google-a...@googlegroups.com, Patxi Bocos
hi Paxti,

I can't reproduce your issue using 1.7.2.1 (if I'm understanding it correctly).  Can you file a report for it here?:

Please include a specific example query string that triggers the error (that is, not just a description of the syntax as below, but the actual query string), and also the error stack trace that you get. 

Note that you should not enclose the field name in quotes in the query.  So if you have a field called 'category', this query should be okay:
  category:food
as should this:
  category:"food"
but this is a parse error:
 "category":"food"

  -Amy


To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/0Pe4_Yow4dAJ.
Reply all
Reply to author
Forward
0 new messages