quark icon indicating copy to clipboard operation
quark copied to clipboard

Directory indexing for creating search database

Open AasthaGupta opened this issue 7 years ago • 2 comments

This is a(n):

  • [x] New feature proposal
  • [ ] Reporting a keyword
  • [ ] Error
  • [ ] Proposal to the Search Engine
  • [x] Other

Details:

Currently all the search database is stored in obj. All the search entries are hard-coded in popup.js. It seems both unscalable and tedious to maintain for large search entries.

  1. It can be replaced with directory indexing.
  2. The chrome extension will create initial search database by directory indexing.
  3. Whenever a new update is made to the directories, it will be reflected in the database instantly after flushing the indexing file.
  4. This will ease the process of updating search entries because now we don't have to maintain a hard-coded database and a simple update in the directory will be enough.

AasthaGupta avatar Feb 26 '18 16:02 AasthaGupta

@AdiChat I'd like to know about your opinions on this idea. I'd be happy to discuss it. :)

AasthaGupta avatar Feb 26 '18 16:02 AasthaGupta

Sounds good.

The code needs refactoring. In the current scenario, we generate the metadata (that is obj) through Cosmos-Search. Changes in the directory will break it but it is unlikely that a user will do so. Still, having an update system will be a nice and safe feature to have.

AdiChat avatar Mar 04 '18 01:03 AdiChat