Search Index Update Error

Tags: #<Tag:0x00007fe3d08e63c0> #<Tag:0x00007fe3d08e6190> #<Tag:0x00007fe3d08e5f88>


Running search-server/updater/ is throwing the exception below. This is from search-server commit bbac445. Any ideas on how to get the search index to update?

Wed Jan 25 10:18:58 EST 2017    FINE    Reindexing recording #3539363
Exception in thread "main" org.postgresql.util.PSQLException: ERROR: syntax error at or near ")"
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(
    at org.postgresql.core.v3.QueryExecutorImpl.execute(
    at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(

The offending query is:

2017-01-25 10:18:58 EST [13663-1] musicbrainz@musicbrainz ERROR:  syntax error at or near ")" at character 314
2017-01-25 10:18:58 EST [13663-2] musicbrainz@musicbrainz STATEMENT:  SELECT as releaseKey,   a.artist_credit,   a.pos,   a.joinphrase,   a.artistId,    a.comment,   a.artistName,   a.artistCreditName,   a.artistSortName  FROM release AS r   INNER JOIN tmp_artistcredit a ON r.artist_credit=a.artist_credit  WHERE a.artistId!='89ad4ac3-39f7-470e-963a-56509c546377' AND in ()




The updater is old code that has been abandoned. (The search server itself is, too, but it’s being dragged along until the new SOLR-based search server is ready.) The supported way is to run a full reindexing periodically.


I looked high and low and could only find documentation on running the updater periodically. Could you point me towards the documentation for a periodic full index?

Some of the things that I’d like to know to be able to implement it are:

  • How often to run the index?
  • Does Tomcat need to be stopped during the index?
  • If Tomcat doesn’t need to be stopped, does Tomcat need to be notified of changes?

I’d try to make some guesses from the search server README, but there are some contradictions in there.

Thanks again.