tagged [search]

Performing Breadth First Search recursively

Performing Breadth First Search recursively Let's say you wanted to implement a breadth-first search of a binary tree . How would you go about it? Is it possible using only the call-stack as auxiliary...

1 Nov at 15:32

Going to a specific line number using Less in Unix

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. How do I do that?

18 Mar at 22:13

Does AvalonEdit :TextEditor have quick search/replace functionality?

Does AvalonEdit :TextEditor have quick search/replace functionality? I use `AvalonEdit:TextEditor`. Can i enable quick search dialog (on Ctrl-F for example) for this control? Or maybe someone has code...

28 Jul at 13:55

Finding first and last index of some value in a list in Python

Finding first and last index of some value in a list in Python Is there any built-in methods that are part of lists that would give me the first and last index of some value, like:

6 Feb at 22:0

Solr - Getting facet counts without returning search results

Solr - Getting facet counts without returning search results I need to return only the facet counts from solr. So I basically want to search over all documents and return the facet counts, but I don't...

25 Feb at 07:58

How to find the index of an element in an int array?

How to find the index of an element in an int array? How can I find an index of a certain value in a Java array of type `int`? I tried using `Arrays.binarySearch` on my unsorted array, it only sometim...

20 Sep at 12:50

Search code inside a Github project

Search code inside a Github project Is there a way to grep for something inside a Github project's code? I could pull the source and grep it locally, but I was wondering if it's possible through the w...

1 Sep at 08:29

Converting user-entered search query to where clause for use in SQL Server full-text search

Converting user-entered search query to where clause for use in SQL Server full-text search What's the best way to convert search terms entered by a user, into a query that can be used in a where clau...

Look at each character in a string

Look at each character in a string I was wondering if anyone knew how to look through a string at each character and then add each character to a new string? Just a really really basic example, I can ...

30 Sep at 14:50

How can I search for a commit message on GitHub?

How can I search for a commit message on GitHub? Not [in a Git repository](https://stackoverflow.com/questions/7124914/how-to-search-a-git-repository-by-commit-message), but rather in [GitHub](http://...

16 May at 12:28

MySQL search and replace some text in a field

MySQL search and replace some text in a field What MySQL query will do a text search and replace in one particular field in a table? I.e. search for `foo` and replace with `bar` so a record with a fie...

1 Dec at 20:41

Find an element in a list of tuples

Find an element in a list of tuples I have a list 'a' I need to find all the tuples for a particular number. say for 1 it will be How do I do that?

25 Aug at 12:31

Find a string by searching all tables in SQL Server

Find a string by searching all tables in SQL Server Is there any way to search for a string in all tables of a database in SQL Server? I want to search for string say `john`. The result should show th...

16 Jul at 14:59

ElasticSearch vs SQL Full Text Search

ElasticSearch vs SQL Full Text Search I want to use full text search in my project... Can anyone explain me, what is the difference between ElasticSearch and SQL Full Text Search Or why SQL Full Text ...

Desktop search utility for pdf,chm and djvu files

Desktop search utility for pdf,chm and djvu files I want to write a tool that helps me search pdf/chm/djvu files in linux. Any pointers on how to go about it? The major problem is reading/importing da...

4 Aug at 14:15

Finding all possible combinations of numbers to reach a given sum

Finding all possible combinations of numbers to reach a given sum How would you go about testing all possible combinations of additions from a given set `N` of numbers so they add up to a given final ...

Vim clear last search highlighting

Vim clear last search highlighting After doing a search in Vim, I get all the occurrences highlighted. How can I disable that? I now do another search for something gibberish that can't be found. Is t...

8 Jun at 20:42

How to search through all items of a combobox in C#?

How to search through all items of a combobox in C#? I have a combobox, and I would like to search through every element in it. How can I do this? (also the number of items is not the same everytime, ...

How do you search a large text file for a string without going line by line in C#?

How do you search a large text file for a string without going line by line in C#? I have a large text file that I need to search for a specific string. Is there a fast way to do this without reading ...

28 Jun at 21:23

Is there a short contains function for lists?

Is there a short contains function for lists? Given a list `xs` and a value `item`, how can I check whether `xs` contains `item` (i.e., if any of the elements of `xs` is equal to `item`)? Is there som...

What is ' and why does Google search replace it with apostrophe?

What is ' and why does Google search replace it with apostrophe? In what language does (`'`) represent the apostrophe? I had some website data extracted in JSON format where some of the user c...

22 Jan at 18:5

How to search multiple columns in MySQL?

How to search multiple columns in MySQL? I'm trying to make a search feature that will search multiple columns to find a keyword based match. This query: works only for searching one column, I noticed...

25 Mar at 10:15

Find minimal and maximal date in array using LINQ?

Find minimal and maximal date in array using LINQ? I have an array of classes with a property `Date`, i.e.: I have to find the `earliest` (minimum) and the `latest` (maximum) dates in this array. How ...

4 Oct at 16:15

What is the best full text search open source project (.NET preferred)?

What is the best full text search open source project (.NET preferred)? I've developed an index and search application with Lucene library. but this library has some limitation in custom ranking in my...

4 Apr at 09:45

How can I perform full recursive directory & file scan?

How can I perform full recursive directory & file scan? here is my code: The problem is that it doesn't get t

19 Jun at 09:10