Questions tagged [text-search]
202 questions
464
votes
18 answers
How does the Google "Did you mean?" Algorithm work?
I've been developing an internal website for a portfolio management tool. There is a lot of text data, company names etc. I've been really impressed with some search engines ability to very quickly respond to queries with "Did you mean: xxxx".
I…

Andrew Harry
- 13,773
- 18
- 67
- 102
302
votes
35 answers
Find a class somewhere inside dozens of JAR files?
How would you find a particular class name inside lots of jar files?
(Looking for the actual class name, not the classes that reference it.)

Kapsh
- 20,751
- 13
- 36
- 44
39
votes
1 answer
How can I create an index with pymongo
I want to enable text-search at a specific field in my Mongo DB. I want to implement this search in python (-> pymongo). When I follow the instructions given in the internet:
db.foo.ensure_index(('field_i_want_to_index', 'text'),…

Maximilian
- 1,325
- 2
- 14
- 35
26
votes
5 answers
How to list all my current TODO messages in a git repository?
I want to see all TODO comments that only I wrote and that exist in the current code base that is git managed.
What I've got so far is printing all TODO comments that I've ever created or modified during the complete git history: git log -p…

Lars Blumberg
- 19,326
- 11
- 90
- 127
23
votes
3 answers
Mongoose text-search with partial string
Hi i'm using mongoose to search for persons in my collection.
/*Person model*/
{
name: {
first: String,
last: String
}
}
Now i want to search for persons with a query:
let regex = new RegExp(QUERY,'i');
Person.find({
$or:…

Carsten
- 326
- 1
- 2
- 9
17
votes
3 answers
Javascript find index of word in string (not part of word)
I am currently using str.indexOf("word") to find a word in a string.
But the problem is that it is also returning parts of other words.
Example: "I went to the foobar and ordered foo."
I want the first index of the single word "foo", not not the foo…
user759885
17
votes
0 answers
How to search text in the source files(include all javascript files) of a web page by using Google Chrome
How to search text in the source files(include all javascript files) of a web page by using Google Chrome?
If exist a Chrome Plugin, or show me how to list all javascript files a web page contains.
Google Chrome has a development tool that can be…

R.T
- 171
- 3
12
votes
1 answer
MongoDB diacriticInSensitive search not showing all accented (words with diacritic mark) rows as expected and vice-versa
I have a document collection with following structure
uid, name
With a Index
db.Collection.createIndex({name: "text"})
It contains following data
1, iphone
2, iphóne
3, iphonë
4, iphónë
When I am doing text search for iphone
I am getting only…

vikram eklare
- 800
- 7
- 25
10
votes
6 answers
how to perform search on Arabic text in JAVA?
I have Arabic text in database with diacritics. when i type Arabic for searching some string, it is without diacritics which definitely do not match with database string. it is working fine on text without diacritics. is there any way to run it on…

Baqer Naqvi
- 6,011
- 3
- 50
- 68
8
votes
2 answers
Fast Dynamic Fuzzy search over 100k+ strings in C#
Let's say they are pre-loaded stock symbols, typed into a text box. I am looking for code that I can copy, not a library to install.
This was inspired by this question:
Are there any Fuzzy Search or String Similarity Functions libraries written for…

Hamish Grubijan
- 10,562
- 23
- 99
- 147
7
votes
2 answers
Usage of TextSearch.Text in DataTemplate
I have a very simple example: WPF form application with single form which contains a dictionary with data:
Dim dict As New Collections.Generic.Dictionary(Of String, String)
Private Sub MainWindow_Loaded() Handles Me.Loaded
dict.Add("One", "1")
…

Dima
- 1,717
- 15
- 34
6
votes
3 answers
Moving cursor with t and f, using word as parameter, vim
Is it possible in vim to move forward with t and f (or in the other way with T and F), but using words as a parameter ?

Niloct
- 9,491
- 3
- 44
- 57
6
votes
2 answers
Programmatically search for text in a PDF file and tell the page number?
There are some tools which allow to extract the whole text portion of a PDF file in order to full text index the PDF.
What I need is a way to search for certain strings and, if thery were found in the PDF file, return the page number?

splattne
- 102,760
- 52
- 202
- 249
6
votes
2 answers
Whats the quickest way to find a file in Zend Studio for Eclipse?
I want to be able to find files quickly in Zend Studio for Eclipse without routing through a tree view of dozens of folders and hundreds of files.
What I'm really after is something that filters file names as I type. Think spotlight on Mac, or the…

Robin Barnes
- 13,133
- 15
- 44
- 45
5
votes
3 answers
adapting text search for graph/molecule comparison algorithms
I'm looking for a text search engine for a non-traditional sort of text search and I want advice on which tool (Lucene, Sphinx, Xapian, or something else) is most appropriate for me, plus pointers on where to get started.
I have molecules…

Andrew Dalke
- 14,889
- 4
- 39
- 54