typesense / typesense/typesense

Query suggestions and half-word results

Open
#1,174 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
26.6k
Forks
973
Avg merge
18h 45m
Merged PRs (30d)
4

Description

Description

Hello, we created analytics rule for query suggestions. So far it works. We can see records being added to the suggestions index that we created. I have a question though.
Is it possible to change the way the suggestions aggregation works?
According to documentation
Since Typesense could be used for type-ahead searches, a search query is counted for aggregation only when there is at least a 4-second pause after the query.

Is it possible to only send to analytics search terms when the user hits Enter

What we want to achieve is to only show suggestions that are full results without half-word results.

For example if someone searches for Test string, in the suggestions index we can see the below records

  • Tes
  • Test str
  • Test string

So if you have try to search for Tes we would see all of the above records but for us only the last one makes sense.

Is there a way to filter half-word results?

Thanks in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the query-suggestions analytics documentation and reproduce the reported records for “Tes” and “Test string”; no source files, tests, or entry points are named. Done would mean determining whether analytics can record only completed searches and whether suggestions can exclude half-word results.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.