Top "Search" questions

Questions about search algorithm mechanics and implementation.

What is the difference between re.search and re.match?

What is the difference between the search() and match() functions in the Python re module? I've read the documentation (current …

python regex search match
Find nearest value in numpy array

Is there a numpy-thonic way, e.g. function, to find the nearest value in an array? Example: np.find_nearest( …

python search numpy
grep for special characters in Unix

I have a log file (application.log) which might contain the following string of normal & special characters on multiple …

unix search grep special-characters
How to search by key=>value in a multidimensional array in PHP

Is there any fast way to get all subarrays where a key value pair was found in a multidimensional array? …

php arrays search recursion
Case-insensitive search

I'm trying to get a case-insensitive search with two strings in JavaScript working. Normally it would be like this: var …

javascript search string-comparison case-insensitive
How to combine two or more querysets in a Django view?

I am trying to build the search for a Django site I am building, and in that search, I am …

django search django-queryset django-q
How can I find all matches to a regular expression in Python?

In a program I'm writing I have Python use the re.search() function to find matches in a block of …

python regex search
Solr vs. ElasticSearch

What are the core architectural differences between these technologies? Also, what use cases are generally more appropriate for each?

search solr lucene elasticsearch
Going to a specific line number using Less in Unix

I have a file that has around million lines. I need to go to line number 320123 to check the data. …

shell unix search less-unix