bounswe / bounswe2015group7

Sculture, The Software Project of Future
6 stars 4 forks source link

/search returns NullPointerException #198

Closed safaorhan closed 8 years ago

safaorhan commented 8 years ago

With most of the queries, /search endpoint returns 500 Internal server error.

Example request:

http://52.28.216.93:9000/search

Example Requests:

{
    "query": "a"
}
{
    "query": "travel"
}
{
    "query": "house"
}

Response:

{
  "timestamp": 1450141560008,
  "status": 500,
  "error": "Internal Server Error",
  "exception": "java.lang.NullPointerException",
  "message": "No message available",
  "path": "/search"
}
fthdgn commented 8 years ago

The reason of this problem is the search index is not up to date with database. You can force the search index to refresh by this url. 52.28.216.93:9000/admin/search/reindex I will make the search methods more robust.