Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neural Code Search returns no results #588

Open
1 task
hovek opened this issue Jan 15, 2025 · 2 comments
Open
1 task

Neural Code Search returns no results #588

hovek opened this issue Jan 15, 2025 · 2 comments
Assignees
Labels
app:desktop application bug Something isn't working os:windows status:triaged The ticket has been reviewed, prioritized, categorized, and assigned to the appropriate team member.

Comments

@hovek
Copy link

hovek commented Jan 15, 2025

Software

Desktop Application

Operating System / Platform

Windows

Your Pieces OS Version

11.0.3

Early Access Program

  • Yes, this is related to an Early Access Program feature.

Kindly describe the bug and include as much detail as possible on what you were doing so we can reproduce the bug.

I have four materials entered since a few days ago and NCS type search never returns anything.

Image

Image

@pieces-support-bot
Copy link

Hi @hovek - Thank you so much for creating this issue. Your issue has been automatically triaged and routed to the proper Pieces team member. Look for a follow-up within the next 24 hours.

In the meantime, please check out these helpful resources:

We appreciate your patience and contribution to making Pieces better!

@pieces-support-bot pieces-support-bot bot added bug Something isn't working os:windows status:new The ticket has been created and is awaiting initial review. app:desktop application labels Jan 15, 2025
@mark-at-pieces mark-at-pieces added status:triaged The ticket has been reviewed, prioritized, categorized, and assigned to the appropriate team member. and removed status:new The ticket has been created and is awaiting initial review. labels Jan 16, 2025
@mark-at-pieces
Copy link
Member

mark-at-pieces commented Jan 16, 2025

Hey @hovek thank you for reaching out to support. We have received a few tickets about search in the past, and I can speak first-hand in saying that our search in Pieces needs an upgrade. (we have a search upgrade planned for the End of the Quarter).

That being said our current search can be a bit confusing but here is a bit of rundown on what we have and when you may want to use the various searching methods.

NCS search: This is used to match semantic meaning of the code itself for instance 'print statement', or 'loop for iteration'. Another way to think about this is to search for what the code snippet does or what it is doing. I use NCS when I want to find similar code, or if I'm looking for a specific topic. NCS will NOT search character for character, i.e. if you are looking for a snippet that contains 'xzy' then you are better off using FTS. Also note: NCS is extremely fast.

FTS search: This is most likely what you were expecting, and does exactly what you think it does. For instance in your query, if you typed 'xyz' and you have 'xyz' in your code snippet this should show up as a result. FTS will ONLY search the content of your snippet, so tags/titles, related links will NOT be searched here.(however blended will)

Blended search: This search method will search the content of your snippets + all the metadata, titles/tags/related links/annotations/...etc. and leverage a Fuzzy search to find what you are looking for based on your query.

I tend to jump around between NCS + Blended search but everyone is different.

Thank you again for reaching out to support, we will be working on a major upgrade to searching here in the coming months best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:desktop application bug Something isn't working os:windows status:triaged The ticket has been reviewed, prioritized, categorized, and assigned to the appropriate team member.
Projects
None yet
Development

No branches or pull requests

2 participants