Text search mongo
db.employees.find({$text: {$search: «Jean Valjean»}}, {score: {$meta: «textScore»}}).sort({score:{$meta:»textScore»}})
db.employees.find({$text: {$search: «Jean Valjean»}}, {score: {$meta: «textScore»}}).sort({score:{$meta:»textScore»}})
https://code.tutsplus.com/tutorials/full-text-search-in-mongodb–cms-24835 MongoDB, one of the leading NoSQL databases, is well known for its fast performance, flexible schema, scalability and great indexing capabilities. At the core of this fast performance lies MongoDB indexes, which support efficient execution of queries by avoiding full-collection scans and hence limiting the number of documents MongoDB searches. Starting from version… Leer más: Full-Text Search in MongoDB »
How do I find out running processes were associated with each open port? How do I find out what process has open tcp port 111 or udp port 7000 under Linux? You can the following programs to find out about port numbers and its associated process: netstat – a command-line tool that displays network connections, routing… Leer más: Linux: Find Out Which Process Is Listening Upon a Port »
db.adminCommand({setParameter: 1, internalQueryExecMaxBlockingSortBytes: }) 256GB > db.adminCommand({setParameter: 1, internalQueryExecMaxBlockingSortBytes: 268435456}); { «was» : 33554432, «ok» : 1 } db.employee.find( {$text: { $search : «pedro mario gonzales lopez» } }, { score : { $meta: «textScore» } }) .sort({ score: { $meta : «textScore» } } )
We all know how important it is to have a great search feature for any app. As more and more apps are seen everyday, the standard for a reasonable search feature keeps rising. A lot of us end up using elastic search or any of its alternatives. This post is for those who want an… Leer más: Efficient Database Search using MongoDB’s Full Text Search (Mongoose) »
How to install Fail2Ban on CentOS 7 On this page Installing Fail2Ban Configure settings for Fail2Ban Add a jail file to protect SSH. Running Fail2Ban service Tracking Failed login entries Checking the banned IPs by Fail2Ban Check the Fal2Ban Status Unbanning an IP address Most Linux servers offer an SSH login via Port 22 for… Leer más: fail2ban Centos 7 with firewalld »
firewall-cmd –get-default-zone firewall-cmd –get-services sudo firewall-cmd –zone=public –permanent –add-service=http sudo firewall-cmd –zone=public –permanent –add-service=https sudo firewall-cmd –zone=public –permanent –add-service=samba sudo firewall-cmd –permanent –zone=public –add-port=3838/tcp sudo firewall-cmd –permanent –zone=public –add-port=8787/tcp sudo firewall-cmd –reload
CLIENT: Create the SSH Key Pair ssh-keygen -C «[email protected]» su – useradd git su git mkdir ~/.ssh && touch ~/.ssh/authorized_keys chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys cat .ssh/id_rsa.pub | ssh [email protected] «cat >> ~/.ssh/authorized_keys» [SERVER] cd /srv/shiny-server git init echo «# shiny-server» >> README.md git add –all git commit -m «first commit»
use sourcedatabase; var docs=db.sourcetable.find(); use targetdatabase; docs.forEach(function(doc) { db.targettable.insert(doc); }); ESTA ES MÁS RÁPIDA (FASTEST!) db.sourcecollection.aggregate([{$out : «targetcollection»}]);
An older version of this article was written by Dean Attali. Introduction While many people primarily turn to the open-source programming language R for statistical and graphics applications, Shiny is an R package that allows you to convert your R code into interactive webpages. And when combined with Shiny Server — available in both a… Leer más: How to Set Up Shiny Server nginx »