hi
im using the latest search-ui (0.12) with the example code that works fine.
when changing it to use the site search connector and updating the .env file (and some other small stuff to match it)
i went on to remove all the facets etc. to have the minimum needed to have a search page. i used a search engine that already scanned one of my sites (apx. 2k pages)
I get this error in the page:
An unexpected error occurred: Cannot read property 'map' of undefined
@elitzur_e I suspect this is a case of bad error messaging.
I was able to reproduce this bug by providing an invalid "documentType" credential. I suspect there is some server error occuring, likely related to one of the following 3 problems:
Will see about getting it fixed, in the meantime, see if you can inspect the raw API response in your browser and see if there is an error message available.
good news. got it to work. it was the documentType as you said. just "page" not "pages"
the error response could be better
i think the main confusion is from the example in this line:
documentType: process.env.REACT_SITE_SEARCH_ENGINE_NAME
so it seems that the engine name sould be there...
thanks
@elitzur_e Oh great! Yeah, we will update that documentation. Sorry that you had so much trouble with this, definitely our bad. Let me know as your project progresses if I can be of any additional help.
For Search UI specific issues, feel free to drop an issue directly in the Github repository, or, we also have a gitter channel available for live chat: https://gitter.im/elastic-search-ui/community.
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.