How to implement a broad search on the title field in DSpace 7/8?

40 views
Skip to first unread message

lucasangelo...@gmail.com

unread,
Mar 7, 2025, 2:12:38 PM3/7/25
to DSpace Community

How to implement a broad search on the title field in DSpace 7/8?

Hello everyone!

I'm trying to implement a broader search in DSpace 8 using the /discover/search/objects endpoint to filter by title (f.title). Currently, I'm using the contains operator, but I've noticed that it does not return all the expected results.

Problem
  • When I search for f.title=Teoria geral dos partidos,contains, it correctly returns an item titled "Teoria geral dos partidos políticos".
  • However, when I search for f.title=Teoria geral dos políticos,contains, no results are found, even though the string is very similar to an existing title.
  • In other words, the search seems to work more like a partial equals than a true "contains" search within the title.
What I have tested
  • Switched between /discover/search/objects and /discover/browses/title/items, but both have this limitation.
  • Tried reordering words and removing accents, but no difference.
  • Checked Solr, and the titles appear to be correctly indexed.
What do I need?

I want to implement a broad search on the title field so that users can find an item even if they don't type the exact title. Some possible solutions:

  1. Is there a way to use wildcards (*) within contains?
  2. Can I use another operator (fuzzy, wildcard, phrase, etc.) in DSpace searches?
  3. If the solution is within Solr configurations, what adjustments should I make?

Any suggestions would be greatly appreciated! 


Reply all
Reply to author
Forward
0 new messages