SEARCH API: Problem in Adding Documents To An Index

208 views
Skip to first unread message

Ananthakrishnan Venkatasubramanian

unread,
May 17, 2012, 11:51:33 PM5/17/12
to google-a...@googlegroups.com
Hi,

I have been using Search API for my application so far successfully. I was able to add documents to index successfully yesterday.

But when I tried to execute the same today, it gave me this exception.

Exception:
Caused by: java.lang.NoSuchMethodError: com.google.appengine.api.search.Index.add(Ljava/lang/Iterable;)Lcom/google/appengine/api/search/AddDocumentsResponse;

I am trying to add only one document to an index and that its not working.
Please give me the solution to solve this problem.
Thanks.

Jeff Dutton

unread,
May 18, 2012, 12:12:35 AM5/18/12
to google-a...@googlegroups.com
I'm seeing this as well.  It seems to have started for me at 2012-05-17 16:28:25.705 EST.

Ananthakrishnan Venkatasubramanian

unread,
May 18, 2012, 2:17:03 AM5/18/12
to google-a...@googlegroups.com
Hi,

When will this issue be fixed and ready to use.

Waiting for the reply.

Thanks.

Santosh Ravindranath

unread,
May 18, 2012, 5:24:59 AM5/18/12
to google-a...@googlegroups.com

I am facing this issue too. 

java.lang.NoSuchMethodError: com.google.appengine.api.search.Index.add([Lcom/google/appengine/api/search/Document;)Lcom/google/appengine/api/search/AddDocumentsResponse;

Unable to update the index. 

Otherwise I am lovin the Search API!

I know Search is still experimental. But can anyone provide a solution for this?

Thanks

Santosh

Peter McKenzie

unread,
May 18, 2012, 6:52:36 AM5/18/12
to google-a...@googlegroups.com
Looking like a problem on our side.  We're working on it.

Kesava Neeli

unread,
May 19, 2012, 6:53:48 PM5/19/12
to Google App Engine
This API was working great when we did a protype. We love it. Now it
fails with error mentioned by many other devloerps. Is there an ETA
for the fix?

Thanks
Neeli
> >>>> *Exception:*
>
> >>>> Caused by: java.lang.NoSuchMethodError: com.google.appengine.api.search.Index.add(Ljava/lang/Iterable;)Lcom/google/appengine/api/search/AddDocumentsResponse;
>
> >>>> I am trying to add only one document to an index and that its not working.
>
> >>>> Please give me the solution to solve this problem.
>
> >>>> Thanks.
>
> > On Friday, May 18, 2012 11:47:03 AM UTC+5:30, Ananthakrishnan
> > Venkatasubramanian wrote:
>
> >> Hi,
>
> >> When will this issue be fixed and ready to use.
>
> >> Waiting for the reply.
>
> >> Thanks.
>
> >> On Friday, May 18, 2012 9:42:35 AM UTC+5:30, Jeff Dutton wrote:
>
> >>> I'm seeing this as well.  It seems to have started for me at 2012-05-17
> >>> 16:28:25.705 EST.
>
> >>> On Thursday, May 17, 2012 11:51:33 PM UTC-4, Ananthakrishnan
> >>> Venkatasubramanian wrote:
>
> >>>> Hi,
>
> >>>> I have been using Search API for my application so far successfully. I
> >>>> was able to add documents to index successfully yesterday.
>
> >>>> But when I tried to execute the same today, it gave me this exception.
>
> >>>> *Exception:*

Peter McKenzie

unread,
May 20, 2012, 2:26:29 AM5/20/12
to google-a...@googlegroups.com
The issue here is that the Index.add() signature has changed between
1.6.5 and 1.6.6.  The impact is that Index.add() will stop working as
1.6.6 rolls out (but other Search functionality is unaffected).  We
try to avoid breakages like this, and expect them to be rare, but they
are part of an API being in an experimental state.

The Fix

All Java Apps using Search will need to be re-compiled with the 1.6.6
SDK.  Additionally, if your code gets the response of the Index.add()
method, then you will need to change from,

for example,

 AddDocumentsResponse response = getIndex().add(documents);
 for (String id : response.getDocumentIds()) {
 }

to

 AddResponse response = getIndex().add(documents);
 for (String id : response.getIds()) {
 }


If you're hitting the problem now, you may want to try the pre-release SDK.  There are of course risks associated with using a pre-release SDK, so you may prefer to wait for the released 1.6.6 SDK.

Kesava Neeli

unread,
May 21, 2012, 6:10:39 PM5/21/12
to Google App Engine
Thanks Peter for the update. Is there a rough ETA for 1.6.6 release
date? Before end of May?
> Pre-release SDK link:http://code.google.com/p/googleappengine/downloads/detail?name=appeng...

Jeff Dutton

unread,
May 21, 2012, 6:31:49 PM5/21/12
to google-a...@googlegroups.com
I downloaded the pre-release 1.6.6 SDK and re-deployed my app.  The problem is fixed and pre-release 1.6.6 seems stable enough to make progress - haven't noticed any problems yet.
Reply all
Reply to author
Forward
0 new messages