• Resolved Indrekkor

    (@indrekhirsnik)


    I am using elasticsearch and have indexed 71967 documents already.

    It was okay in the start, but I keep receiving the message Error message: SyntaxError: Unexpected token P in JSON at position 0

    Using wplsor to index bbress forum that has 2 million replies and ~120 thousand topics.

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    Try to index with debug mode “on”, and batch size 1.

    It will tell you the post id in error. You can try to identify and fix the post issue, or you can prevent indexing it with the post meta box “do no search”.

    Thread Starter Indrekkor

    (@indrekhirsnik)

    Will see what the issue with the topics were, there were 2 of them that created a problem.

    Thanks for that.

    No another question arouse, is it possible to exclude private forums from ending up in the index ?

    How is the indexing hierarchy done in WPSOLR, right now i can see private forum topics appearing on search that i do not want publicly to be seen.

    If i exclude from search Private forum ID will it exclude all the topics related to that also and replies related to those topics?

    Or if i exclude topic IDs from search that are in a private forum will the replies get excluded also?

    Plugin Author WPSolr free

    (@wpsolr)

    WPSOLR is a general search plugin.

    The notion of forum, or private, has to be implemented with filters.
    https://www.wpsolr.com/guide-category/actions-and-filters/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error message: SyntaxError: Unexpected token P in JSON at position 0’ is closed to new replies.