ail-framework icon indicating copy to clipboard operation
ail-framework copied to clipboard

Question/Documentation/Usability: How does the search exactly work

Open certrik opened this issue 4 years ago • 1 comments

In https://aildomain.tld:7000/search I sometimes find stuff sometimes I don't. How does the search work exactly?

  • Is it possible to search also search for the name of a paste like in https://pastebin.com/a68jmkq9 searching 'a68jmkq9' yields the paste ingested by ail? => This would be a great feature if this isnt already possible

  • Is the serach dependant of the loaded index? If yes it would be also great to have the possibility to search in all indices.

A bit more detail or overhauled search site would help to highten usability.

certrik avatar Oct 01 '20 10:10 certrik

The search in AIL is done by Whoosh and depending on the amount of data fed to AIL, can lead to large indexes that have to be split to keep the search somewhat fast.

  • So yes, the search is dependent on the loaded index.
  • You can really search for an item name but you can access it by playing a bit with the URL. /showsavedpaste/?paste=[paste_name]. Where paste_name is generated by your feeder. For pystemon, it will probably be something like archive/[source]/[date]/[id]

As far as I know, a complete rework of the search is planned on the long term roadmap.

mokaddem avatar Oct 06 '20 09:10 mokaddem