Windows folders search filter algorithm

I'm wondering if someone knows about the filter algorithm used by windows when searching for files with name containing a given string. I will start with the example in this image: I have a folder that contains 5 sub-folders sorted alphabetically....
more »

2017-02-14 21:02 (0) Answers

Matching entries in arrays powershell

I have two data sets one is a data table pulled back from a SQL date base and the other is a data set pulled back from Active directory $HRusers = Invoke-SQL ## this calls a function to get data from SQL $adusers = get-aduser -filter * -Properties s...
more »

2017-02-14 16:02 (0) Answers

Search in ElasticSearch

I have a problem in elasticsearch. In the console Kibana, I am executing this code, GET bounce_gmd/_search { "query": { "match_phrase": { "date_added": "2017-02-08" } }, "size": 0, "aggs": { "date_added": { "terms": { "field": "bo...
more »

2017-02-14 10:02 (1) Answers

vim highlight found words one by one

In vim I want to highlight the word found when jumping to it. I know about :set hlsearch but that highlights all the words found. For example I have a buffer: the cat is fat the cat is black I do /cat and now it should highlight 'cat' on the firs...
more »

2017-02-13 20:02 (1) Answers

Search multiple strings in sentences

I try to search "ego d16" in a list like ego fara d16 ego d16 ego d22 d16 ego para ego dela d16 Must result in lines (1, 2, 4, 5)... My code is var filter = $(this).val(); //like 'ego d16' $("#rezultate li").each(function () { if ($(this)[0...
more »

2017-02-13 01:02 (3) Answers

MySQL Priority Search

I'm writing a small app to suggest sports based on a number of features about that sport and then offer up a selection based on most relevant. I'm currently using a spreadsheet to get it straight in my head and the columns currently have the sport i...
more »

2017-02-12 16:02 (0) Answers

PHP search using == and not case sensitive

I have a code in PHP and I want to use == operator to search only exact terms and also have the search not case sensitive. The first thing doesn't work when I change LIKE to ==. <?php $con = mysql_connect('********','********','********'); mysql_...
more »

2017-02-12 11:02 (2) Answers

a 'search and extract' batch file

I'd like to ask your assistance in the following batch script: - Search for a specific file in all drives - If found extract an archive to that directory Thank you in advance Edit code added from comments area for /f "delims=" %%F in ('dir /b /s "C...
more »

2017-02-12 11:02 (0) Answers

Finding MIN MAX pairs from array

Given a sorted array of N integers, I need to find to all pairs with different indexes(i!=j). I need the maximum (a[j]+a[i]-1) and minimum (a[j]-a[i]+1) out of all pairs with (j>i). Numbers aren't unique but their pairing is allowed. Numbers can't...
more »

2017-02-12 05:02 (1) Answers

More work like Judea Pearl's Heuristics?

I am researching formal and informal search heuristics. One of the best books on the subject I've found is Judea Pearl's Heuristics. Embarrassingly, I find myself unable to find a good search strategy that returns more material in this vein. Things I...
more »

2017-02-11 23:02 (0) Answers

Ionic 2: Search Filter returns undefined

I would like to have a search filter on my page. However, it seems as though it will always return undefined. Below is my Typescript: filterItems(searchTerm) { this.category.forEach((item) => { return item.da...
more »

2017-02-11 18:02 (1) Answers

how to Search Data on firebase database in android

I want to make an application that will allow users to buy and sell Items, and this application should use Firebase. It will use Firebase storage for the images uploaded by the users and use Firebase database to store the products description. My que...
more »

2017-02-10 22:02 (0) Answers

Drupal 7 Views search terms - ignore short terms

I've got a Drupal site using Drupal core 7.53 and Views 3.14, with a view that has an exposed search terms filter. Within general search settings, the "minimum word length to index" is set to 3. The problem is that any multiple-word search with a sin...
more »

2017-02-10 20:02 (0) Answers

Date Range Search in Lucene 4.0

I have a situation where I need to search data between range of two dates(including lower and upper values) in LUCENE 4.0. I have a field in the indexes which has a String value in the format "YYYY-MM-DD HH:MM:SS". Now I need to make a search between...
more »

2017-02-10 17:02 (0) Answers

Parsing simple query syntax

Let's say I have a query string like that: #some terms! "phrase query" in:"my container" in:group_3 or #some terms! or in:"my container" in:group_3 terms! "phrase query" or in:"my container" test in:group_3 terms! What is the best way to...
more »

2017-02-10 15:02 (2) Answers

neighbor searching algorithm

I have a STL file that contains the coordinates (x,y,z) of 3 points (p0, p1, p2) of a triangle. these triangle represent a 3D surface f(x,y,z). The STL file might have over a 1000 triangles to represent a complex geometry. for my application, I nee...
more »

2017-02-10 14:02 (2) Answers

Change search query in Wordpress

I have a search field which allows the user to search for places and postcodes. When the user inputs the search value, I have two hidden input fields which populate the latitude and longitude based on user selection. I want to run a query which sear...
more »

2017-02-10 01:02 (1) Answers

Availability tracking with Algolia

I am working on an Airbnb-like website and I am in the process of rewriting our in-house, SQL-based search system with Algolia. It's been a really pleasant journey so far, as I have managed to remove a lot of legacy code and outsource it, with awesom...
more »

2017-02-09 14:02 (1) Answers