-
Notifications
You must be signed in to change notification settings - Fork 29
Core
Julien Amsellem edited this page Sep 27, 2017
·
2 revisions
The very first class to instantiate is named Everything. It is the entry point for all kind of queries.
The same instance can be reused for multiple queries but even if the class is thread safe the queries won't be executed in parallel.
One important thing to know is you should call Reset when you are done with a query to free up allocated memory (mainly native allocations).
Let's see a simple piece of code:
IEverything everything = new Everything();
IQuery query = everything.Search();
// do some stuff with the query ..
everything.Reset()If you want to customize how the "matching" is done you can specify a few options (these are the default values):
everything.MatchCase = false;
everything.MatchPath = false;
everything.MatchWholeWord = false;Everything class works like a state machine which means that you can change the properties above just before calling Everything.Search().