HTML Table search single cell

I have been looking for a code to search a table and display a single cell. Kept trying to make my own and eventually found one that works perfectly except for one thing. When the search bar is emptied, it displays the first cell, I don't know how to...
more »

2017-10-16 17:10 (3) Answers

Python - binary search in sorted list of lists

Is it a way in Python 3 to binary search in sorted list of lists? Let's assume I have a list of lists: list = [['A', 'B', 3], ['C', 'D', 1], ['E', 'F', 2]] I've sorted it by 3d element in inner list with: list = sorted(list , key=itemgetter(2)) ...
more »

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

Search by file name drupal 7

I wish to search filenames. I use search api module for my site wide searches. The filenames are not searchable. Wherever I search for help , it talks about CONTENTs of files to be searched. My use case is not that complicated. Its a simple file name...
more »

2017-10-16 11:10 (0) Answers

Search for many strings in a single document

I have a list of 1M to 10M strings and I want to see which ones of them can be found in a single document (say 1 page of text). I know I can use Lucene (Solr/Elasticsearch) to find all documents containing a string. But this is the opposite. I coul...
more »

2017-10-15 23:10 (1) Answers

Scanner Methods

I am trying to write a program that will use Scanner to view an imported file and add the "comparables" insides into a Binary Search Tree. However, I do not know what type of value will be passed in the file (Integer, String, etc.). Therefore, I cann...
more »

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

Searching a swap-sorted array of distinct integers

Context: An array A[1..n] of distinct integers is called swap-sorted if there is some k, 1 ≤ k ≤ n, so that moving the last n − k elements of A (in the order in which they appear in A) before the first k elements of A results in a sorted array....
more »

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

Codeigniter search function throws an error

I have written some code to make a search in the CODEIGNITER3 framework. When I insert 2 or more words to search input, it works great, however, when I enter just 1 word, it gives this error. How can I solve this problem? Here is my controller: ...
more »

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

Using one-page URL alongside search function

First of all, apologies if this question seems repetitive or one that you feel I have not done my due diligence on. I normally scour the Internet before, but I feel as if I need to ask. So, basically, I'm building a one-page dynamic website which l...
more »

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

PHP Warning While Making A Search Engine

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /storage/ssd5/102/3255102/public_html/search.php on line 29 My Code: <?php $button = $_GET [ 'submit' ]; $search = $_GET [ 'search' ]; if( !$button ) ...
more »

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

SOLR automatically displays all Indexed pages

I'm not sure a conclusive answer is possible, but perhaps pointing me in the right direction can help. I installed Apache SOLR on my own server. It's integrated into Wordpress in that I can index my WP posts as searchable pages in SOLR. I'm using th...
more »

2017-10-14 07:10 (0) Answers

scraping - limited search results availability

So I wanted to have some used-cars price database to do some data analysis across various brands, countries, fuel types etc. I found couple of websites that have this information and extracted some data. But I also wanted to extract data from autosc...
more »

2017-10-13 14:10 (0) Answers

Shortest path in a maze

I'm developing a game similar to Pacman: consider this maze. Each white square is a node from the maze where an object located at P, say X, is moving towards node A in the right-to-left direction. X cannot switch to its opposite direction unless it...
more »

2017-10-12 21:10 (1) Answers

Smart search for acronyms in Salesforce

In Salesforce's Service Cloud one can enable the out of the box search function where the user enters a term and the system searches all parts of the database for a match. I would like to enable smart searching of acronyms so that if I spell an organ...
more »

2017-10-12 21:10 (1) Answers

Index large document with Solar causes exception

I am trying to add documents to Solr (5.3.2) with pysolr. I generate a simple JSON object containing a large text and some metadata (date, author...) then I try to add that to Solr. My issue is that beyond a certain size, Solr will fail to index the ...
more »

2017-10-12 11:10 (1) Answers