Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

V2: Creating and Defining indexes #20

Open
timothymarois opened this issue Jul 9, 2018 · 0 comments
Open

V2: Creating and Defining indexes #20

timothymarois opened this issue Jul 9, 2018 · 0 comments
Labels
enhancement V2 - Feature Request Version 2 Feature Request

Comments

@timothymarois
Copy link
Member

timothymarois commented Jul 9, 2018

The ability to create and define specific indexes - Being Created on Filebase (Version 2)

Example:

// setting up a new index called "category" for all the properties named "category_name" 
$db->index('category')->add('category_name');

// If index is out of date or needs to be updated
$db->index('category')->update();

// deleting an existing index
$db->index('category')->remove();

// setting the database to use/have specific indexes available
// indexes "can" slow things down, so always best not to overload.
$db = new Filebase\Database([
   'index' => ['category']
]);

For this to work, all documents in the database directory would need to have the property of category_name in this example.

@timothymarois timothymarois added enhancement V2 - Feature Request Version 2 Feature Request labels Jul 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement V2 - Feature Request Version 2 Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant