materiahq/materia-designer-public

Global search never matches any documents

Closed this issue · 5 comments

Expected behavior

In the global search, I expect a search to match entities, api endpoints, file names, etc.

Actual behavior

It never matches anything.

Step to reproduce the behavior

Create some entities, and some api endpoints, and then type anything into global search :)


  • Materia Server Version: 0.2.2
  • Materia Designer Version: 0.2.2

It seems that is happening on windows versions, i ll take a look at it.

FYI: I am using the Mac version.

thyb commented

Materia is indexing Entities/Queries and Endpoints using lunr. We don't index files yet but it's something we're likely to implement soon.

The following animation is the use case we've tested:

search

Do you have something which differ from the animation ? If yes and if you still can't match any search results, can you open the developer tools (view => toggle developer tools) and tell us if you have any Javascript error in the console?

Interesting. I just rebooted the app after a day off of it. And it now works as you describe.
So sorry for the issue, it does seem to work!

However, I did a test to see if that I added an entity in this new session, would it be indexed by the search. It turns out it doesn't. I suppose it is still an inconvenience to not know why the global search isn't indexing during a working session when you create endpoints and entities. This is particularly strange during your initial use of the app when nothing returns from search.

thyb commented

Ah yes, you're right! It's not indexing new Entity/Query/Endpoint.

I have opened the issue #44 for the bug you've explained.
I've also opened #45 for indexing files too in the search engine.

Both issues have been added to the September release milestone.

Thanks for pointing out these bug/enhancement.