Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
S
sshoc-marketplace-backend
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SSHOC
  • sshoc-marketplace-backend
  • Issues
  • #44

Closed
Open
Opened Dec 22, 2020 by serviceAcc.5d4bd64a607a0@stefan.probstMaintainer

clarify use of special characters in item-search

currently, the backend gives special meaning to characters like a "-" (minus) in item search queries. i'm guessing this is because the query string is passed to solr as is.

this is great in principle, but can lead to unexpected behavior, when the autosuggest endpoint returns suggestions which include special characters. using the suggestion as a query param will not return the expected result in an item-search query.

example:

  • https://sshoc-marketplace-api.acdh-dev.oeaw.ac.at/api/item-search/autocomplete?q=stopifu will return { suggestions: 'stopifu - supporting task-specific stoplisting for topic models.' }
  • https://sshoc-marketplace-api.acdh-dev.oeaw.ac.at/api/item-search?q=stopifu+-+supporting+task-specific+stoplisting+for+topic+models. will however return no result.
  • removing the "-" from the query params will return the correct result.
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: sshoc/sshoc-marketplace-backend#44