streetcoder Posted August 28, 2015 Share Posted August 28, 2015 Hello Everyone, I have implemented the chapter 22 "CREATING A CMS" as exactly as explained in the book. I have done all the setup for elastic search that is: - downloaded elasticsearch and run from terminal- install from composer- take the search controller from github source- added the view files- changed the code of index.php file as instruction I can see the search box in the URL http://localhost/%5BPROJECT_NAME%5D/index.php/search.The probelm is when I search any word i.e. "alice", I am getting error like: {"error":"IndexMissingException[[pages] missing]","status":404} Can someone tell me why I am getting this error? Thanks Link to comment Share on other sites More sharing options...
Larry Posted August 28, 2015 Share Posted August 28, 2015 Did you run the create method of the search controller? Link to comment Share on other sites More sharing options...
streetcoder Posted August 28, 2015 Author Share Posted August 28, 2015 I have just run the "create" method and now I do not get this error. But search result does not work properly that is I have the content like "alice" in the database in the title of a page but it gives that "0 Record(s) Found Searching for "Alice"" However, many thanks Larry for your answer. Link to comment Share on other sites More sharing options...
streetcoder Posted August 28, 2015 Author Share Posted August 28, 2015 I have just run the "index" method and I got result search result. Many thanks Larry for your help and a wonderful book. Link to comment Share on other sites More sharing options...
Recommended Posts