Is there any way to get (key)words list or (key)words density from EF database, just like some plugins in Wordpress posts database?
When I start to input some word in EF’s search box, I cannot often remember or think of WHAT kind of words I have to input. This is come from my insufficient classifying imported files without appropriate tags and notes. And also, some important words absolutely drops out from my brain memory faded because of old age.
So, when I try to search and input first character via my obscure memory, it is much useful to live-get word list or word density for selected tag- or subfolder-database. They will just show me candidate of words that I have to type in.
I wonder how EF will extract from database (*.eflibrary and files) and just imagine the way for EF to extract (key)word by analogy with Wordpress. It would be:
get posts related to tag ‘apple’ and make them one sentence:
$myposts = get_post(‘number=-1&tag=apple’); $ret=’’; foreach ($myposts as $post) { $ret .= $post->content;}
remove html tag and make array of words via space:
$ret = strip_tags($ret); $lists = preg_split(’ ',$ret);
count for each word and sort:
$aa = array_count_values($lists); ksort($aa);
We have (key)words and their count(density) as foreach($aa as $word=>$count),
for example, osx(20), iPad(7), iPhone(15), …, and so on.
This time, I simply guess EF’s way is probably similar flow if we overlook each base-language.
EagleFiler doesn’t store the text of your files in a database. It extracts it by reading the documents directly and then stores the word counts in .efindex files (inside the .eflibrary). Anyway, I’ll figure out the details. Don’t worry.