Stream: troubleshooting

Topic: SearchResult query error


view this post on Zulip César Ferreira (Oct 20 2025 at 15:03):

Hi, I am using version 6.5 and I found a problem that if a user belongs to a group the SearchResultFragment fails to be generated and Dataverses/Datasets/Datafiles won't show for that user.
The error in server.log is like this:

[2025-10-20T14:54:52.146+0000] [Payara 6.2024.6] [INFO] [] [edu.harvard.iq.dataverse.search.SearchIncludeFragment] [tid: _ThreadID=113 _ThreadName=http-thread-pool::http-listener-1(2)] [timeMillis: 1760972092146] [levelValue: 800] [[
  Search Syntax Error: Error from server at http://solr:8983/solr/collection1: org.apache.solr.search.SyntaxError: Cannot parse 'discoverableBy:(group_user57': Encountered "<EOF>" at line 1, column 28.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    <BAREOPER> ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    <REGEXPTERM> ...
    "[" ...
    "{" ...
    <LPARAMS> ...
    "filter(" ...
    <NUMBER> ...
    ]]

I also increased verbosity for edu.harvard.iq.dataverse.search and found that the query parameter causing the error is like this Groups: (group_user57 OR group_217-c_-L).
Any ideas of what could be causing this error?

view this post on Zulip Philip Durbin 🚀 (Oct 20 2025 at 16:04):

Interesting. Can you reproduce it on https://demo.dataverse.org ?

view this post on Zulip César Ferreira (Oct 21 2025 at 08:33):

I created an account there, then I created a dataverse and added a group to my account. Everything worked fine. I am in middle of merging 6.6 into my branch. When I am finished I could look into the HTML files, maybe I made some mistake on a previous merge. Any files I should be looking, besides dataverse.xhtml and search-include-fragment.xhtml?
While creating a new dataset on https://demo.dataverse.org/ I found this behavior for the author fields:
image.png

view this post on Zulip Philip Durbin 🚀 (Oct 21 2025 at 10:06):

Yes, on the demo server (and Harvard Dataverse) we have deployed external vocabulary scripts so the author fields look a little different: https://github.com/IQSS/dataverse.harvard.edu/issues/326

view this post on Zulip Philip Durbin 🚀 (Oct 21 2025 at 10:07):

I'm not sure what other files you should look at, sorry.


Last updated: Oct 30 2025 at 06:21 UTC