Questions tagged [indexing]
The indexing tag has no summary.
32 questions
5
votes
2
answers
572
views
Is there an equivalent of python's enumerate in jq?
I want to get the value after a selected item in a list in jq.
Something like this seems like it would work:
jq '. as $list | select(.focused == true) | .id as $id | $list | select(????)
One way of ...
0
votes
1
answer
58
views
Why index++ of SWISH++ is so slow?
I'm periodically running dwww+++ to add to searchable docs what info I add to local drive. It writes "Executing index++" and it runs for minutes, whereas my CPU load is ~2-3% of one core. ...
0
votes
0
answers
42
views
Centos is killing share server
I have a centos 7 based webserver that must access (and display) pdf files from windows share server.
Problem is that its killing webserwer even when webacess is idle (apache stoped). I have figured ...
0
votes
0
answers
256
views
PostgreSQL: indexes and partitions
I have a PostgreSQL database and I noticed a weird behaviour while working with indexes and partitions. The engine version is 10.21.
Now, I have a table with this structure:
guid varchar(50) PK
guid_a ...
1
vote
2
answers
294
views
Subtract with previous index where index is not a number using awk
i would like to subtract values from previous values but a condition must be satisfied.
File:
2022-02-01 01:00:00|abc|2001|5
2022-02-01 01:00:00|abc|2002|10
2022-02-01 01:01:00|abc|2001|6
2022-02-01 ...
0
votes
1
answer
6k
views
Awk substr index 0
I just discovered that substr() in awk accepts either 0 or 1 as the initial index in a string. I tested this in Gawk 5.1.0 and MacOS awk 20070501.
awk 'BEGIN {print substr("abcd", 0, 1)}'
...
2
votes
1
answer
910
views
Indexing files' metadata
Is there a tool that allows to index (search) files based on their metadata on linux? I've search a bit and found (here) that there are several tools that allow file indexing on linux:
Recoll
mlocate
...
0
votes
1
answer
218
views
Is it possible to integrate pdfgrep into nemo search?
I often find myself looking for PDF documents. Luckily, I found pdfgrep that really does a great job at finding PDF documents by content.
Following command lets me search for documents that have my ...
1
vote
1
answer
4k
views
Exclude directories for du command / Index all files in a directory
My goal is rather simple: I want to create a small database of all files/directories within a big directory.
After looking for a tool suited I couldn't find anything but the good ol' du. I figured out ...
0
votes
1
answer
186
views
Print only files, directories containing files and empty directories
I am trying to index some LTO tapes (and some hard disks as well) and would like a simple output, stored in a text file. Something like the example below:
...
/home/norg/Desktop/empty\ dir/
/home/norg/...
6
votes
2
answers
16k
views
bash array of arrays
Trying to write some nested loop, and I'm not getting how to write it. Perhaps I'm looking in a wrong direction but what I'm trying to write is:
declare -a bar=("alpha" "bravo" "charlie")
declare -a ...
1
vote
1
answer
2k
views
for loop with indices [duplicate]
Let's suppose I have the following loop:
for i in {1..3}
do
mkdir $i
done
Since I have many other loops in the main code and I am going to change regularly the size of the sequence, I would like to ...
2
votes
1
answer
240
views
Read Text List into Dynamic array?
Trying to automate some work stuff and this includes many folder generations but and I was thinking of using a dynamic array to do this, let me know how this sounds.
First Part of my Script is to ...
3
votes
1
answer
781
views
Does sort --unique -k drop duplicates in original order?
I'm doing a unique sort on a concatenated set of index files where the first column will sometimes change between each index and the second column will be a key value (actually hex addresses). Each ...
44
votes
5
answers
52k
views
/usr/lib/tracker/tracker-store causes very heavy CPU load on Debian "Buster"
After the last upgrade on:
Operating System: Debian GNU/Linux buster/sid
Kernel: Linux 4.18.0-2-686-pae
Architecture: x86
/usr/lib/tracker/tracker-store eats a huge load of CPU.
...
3
votes
1
answer
522
views
Index and search a directory
I have a directory tree containing many text-files. I would like to index the full-text of all these files (ignoring files with certain file-extensions), so that I can quickly search thorugh all of ...
0
votes
2
answers
405
views
Is it possible to fake a SMB network mounted folder as a native folder?
I have an HDD hooked up to a linux TV receiver (Vu Solo) with a lot of movies in one folder. This device and my (Synology) NAS are in the same local network. The NAS contains a media indexing service ...
6
votes
1
answer
16k
views
Easy-RSA index.txt, serial and duplicates
We have more than 700 certs, generated for OpenVPN usage by Easy-RSA 2. I don't know how this happened (suspecting deleting one time by somebody index.txt, serial or both), but more than half of the ...
-1
votes
1
answer
4k
views
Principles of file indexing in Linux [closed]
I have read a lot about indexing in Mysql and I know that Linux has a great utility locate to find files. Maybe Linux has the same principle to do indexing as Mysql have provided. But I think the ...
5
votes
5
answers
2k
views
execute command on a defined range of directories
Is it possible to 'partition' a directory listing - say in to blocks of some number, to perform different actions on each 'range'?
For example, lets say I have the following directories inside ...
5
votes
1
answer
954
views
How can I get the recoll package to index markdown (.md) files?
From what I understand markdown is pretty similar to text and html, which are all indexed by the recoll search engine.
However my markdown files with extension .md are not being indexed. I have ...
1
vote
2
answers
738
views
Bash substring expansion of array with some unset element
I just discovered a weird behavior when indexing into bash arrays with unset elements. I make an array with these three elements:
$ arry[3]=a
$ arry[4]=b
$ arry[5]=c
The array appears to be right:
$ ...
1
vote
1
answer
98
views
How does Ubuntu's indexation work on a virtual machine?
I have read on https://help.ubuntu.com/community/FindingFiles the following sentence:
Thankfully my computer indexes all my files every night while I sleep and I can search just the index, which ...
0
votes
1
answer
3k
views
Some index files failed to download - Linux Mint 17.1 Cinnamon
Running sudo apt-get update i get the following error message:
...
Ign http://packages.linuxmint.com rebecca/upstream Translation-en_US
Ign http://packages.linuxmint.com rebecca/upstream ...
2
votes
0
answers
807
views
Tracker-extract and Tracker-store processes consuming huge Amount of RAM
I am using Arch Linux, kernel 3.16.
From last one week my two processes tracker-extract and tracker-store are taking too much RAM. It results in hangup of system once in every 2 hours.
tracker-...
1
vote
1
answer
47
views
big-scale tracker alternative for server filesystems
I'm using 8tb RAID storage (XFS filesystem) filled witch lots of files. By default Suse had installed tracker for file indexing/searching but:
It's constantly reading HDDs (like for half a year now ...
5
votes
2
answers
4k
views
What tools can I use for PDF indexing?
In our working group we used Recoll on a Ubuntu PC to index all the PDF. For a while we moved everything to a Redhat server. Is there a Recoll alternative which doesn't requires a GUI adn support ...
1
vote
1
answer
2k
views
Desktop indexing with KDE
I have just upgraded to KDE 4.13 on Arch Linux and it has brought my system to a screeching halt. I am pretty sure it has something to do with Baloo the new desktop search indexing system. I am not ...
15
votes
1
answer
5k
views
generate a hyperlinked table of contents and insert into existing PDF
I have an existing PDF (without any corresponding source file), and a text file which is a list of items referencing sections within the PDF file, along with a page number for each item. I would like ...
5
votes
2
answers
6k
views
Shellscript to print a directory tree and files's contents with a nice presentation
I'm trying to write a shellscript which prints a tree-view for a specific directory and it's subdirs to pdf via latex, as well as the titles and contents of all scripts contained within that primary ...
2
votes
1
answer
294
views
Find out when the recoll index was last updated
Is there a way to find out, when a recoll-index was last updated?
8
votes
1
answer
7k
views
Why index files? [closed]
I installed Linux on something like 3 or 4 different machines last year, and in two cases, I had a serious urge to vomit after noting that file indexers such as virtuoso (Debian testing with the ...