"Search query is not valid"

26 views
Skip to first unread message

Snickers

unread,
Mar 27, 2023, 10:22:04 PM3/27/23
to DSpace Technical Support
Hi Team,

We are running Dspace 7.3 and having an issue using ":" in search field. I have done some search and edited solr and dspace configs but nothing seems to work. I won't put them here to avoid confusion for now.

Is there a way to allow colon (:) in the search field?

Regards,
Bryan

Tim Donohue

unread,
Mar 28, 2023, 10:50:17 AM3/28/23
to DSpace Technical Support
Hi Bryan,

The colon is a reserved character in Solr (which the search engine uses).  But you should be able to escape it by simply surrounding it with quotes.

So, if you search "My Title: my latest paper" (with the quotes!) that should work to search by the colon.  However, if you don't include the quotes, then a field-based search will try to run.  For more information on using search in DSpace 7, see the docs at https://wiki.lyrasis.org/display/DSDOC7x/Search+-+Advanced

Tim
 
Reply all
Reply to author
Forward
0 new messages