I have so far been using the Search Api in my App Engine Project (Java, Eclipse). But since Search Api cannot do partial or misspelled matches (among other things), I am trying to switching to LAE (i.e. Lucene for App Engine) based on the advice of a response here on SO. Will someone please settle the following concerns?
- How many documents can a Lucene index have? How many indexes can a project have? For Search Api: There is no limit to the number of documents in an index, or the number of indexes you can use. However, the total size of all the documents in a single index cannot be more than 10GB.
- Where do I go to see my Lucene data? For Search Api:
app engine page >> Data >> Text Search
Can I do id-only queries and do I save anything for doing so? For Search Api it’s a lot cheaper:
Query query = Query.newBuilder() .setOptions(QueryOptions.newBuilder().setLimit(RESULT_SIZE).setReturningIdsOnly(true).build()) .build(req.getSearchTerm());
How does App-Engine charge for Lucene? I know it’s not a GAE service, but it certainly cannot be free. So how am I being charged? For Search Api: https://cloud.google.com/appengine/docs/python/search/#Python_Search_API_quotas
Can I myself set a unique id per document in Lucene, which can serve as a key for the document? For Search Api
Document.newBuilder().setId(myUniqueId);
Please at the very least address the five points above. From my perspective this is a tough question. But there seems to have no authoritative reference for this crucial comparison (or any reference really). And why not have one here on SO? This is where coders come for answers.