Hi we're trying to install a self managed version of App Search on our server, however when trying to connect to the API to index documents it's returning me the following error:
["Internal server error. Please email support@swiftype.com if this error persists."]
In the server logs, it looks like there is some sort of duplicate key error, but I can't find anything about this online.
Sorry you are experiencing issues with the product.
Could you please check which App Search version you're running? The easiest way to get that information from a running instance would be to hit the health API and share the results: http://localhost:3002/api/as/v1/internal/health (or whatever the URL is for your installation).
Thank you!
P.S. Thank you for the detailed error message, we are looking to improve error messaging in cases like yours.
Looked closer at the issue and managed to reproduce it. I see a number of documents in that documents list that have duplicate ID field values. That will not work since all documents are expected to have a unique id (if provided).
We're going to look into improving error messages for cases like that, but for now I'd recommend you ensure uniqueness of those document ids to avoid the error.
Just confirmed, that in App Search 7.5.0 (should be out within the next couple of weeks) the behavior should be fixed and duplicate errors in batch indexing requests will be handled as expected.
I've been encountering this problem again, inconsistently. I have been checking for duplicates before sending my documents to be indexed, and have confirmed that there are no duplicates being sent, however I am still getting the internal server error.
I have checked the logs and it seems to be spitting the duplicate key error, here is what I could find:
Do you have any other ideas as to why this might be happening? I am using the documents api to sent the documents, and in batches of around 70 documents.
It seems this same error:
["Internal server error. Please email support@swiftype.com if this error persists."]
And the DuplicateKey server error are thrown for all document id issues.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.