Questions tagged [text-search]

202 questions
2
votes
2 answers

searching through a text file, and display the results?

if get an input from the user and i wanted to search the file for any results, and display the results: $searchValue = $_POST['search']; $handle = @fopen("home.txt","r"); # read line by line while (($buffer = fgets($handle, 4096)) !== false && //…
getaway
  • 8,792
  • 22
  • 64
  • 94
2
votes
2 answers

Optimization VBA text search

I created a VBA code for text analysis, but I encountered a problem at run time. I just found on Google an advice on using excel built in function, but it did not improve the run time. Here is the problem for which I use VBA. I've got a list of…
J. Andrew
  • 23
  • 2
2
votes
1 answer

How efficient in terms of speed is a Filterable custom ArrayAdapter?

I need to search a varchar column of SQLite database for a word from my app and show the results in a listview. Currently I'm using Mensa library Mensa Github Link because of the speed it offers for even very very long texts. In another project I've…
2
votes
1 answer

MongoDB fulltext search: Overflow sort stage buffered data usage

I am trying to implement mongo text search in my node(express.js) application. Here are my codes: Collection.find({$text: {$search: searchString}} , {score: {$meta: "textScore"}}) .sort({score: {$meta: 'textScore'}}) .exec(function(err, docs…
Raeesaa
  • 3,267
  • 2
  • 22
  • 44
2
votes
0 answers

Sorting search results

I'm implementing phrase and keyword search together (most likely this kind of search has a name, but I don't know it). To exemplify, the search I like turtles should match: I like turtles He said I like turtles I really like turtles I really like…
hpique
  • 119,096
  • 131
  • 338
  • 476
2
votes
1 answer

How to print all TODO comments I ever added or edited during any git commit

How can I list all TODO comments I ever added or edited within all commits of a git versioned project? I do not want to see everyone else's TODO comments. The output should print all lines actually containing my TODO comments: \\TODO: This should be…
Lars Blumberg
  • 19,326
  • 11
  • 90
  • 127
2
votes
3 answers

how to find the first word in the sentence having 'w' in it

how can i find the first word in my sentence having 'w' character.This character can be present anywhere in my word.example of sentence "Hi xyzwy! what are you doing here?" So the result should be "xyzwy".
coder
  • 21
  • 2
2
votes
1 answer

JenaText: working example for querying RDF files

I'm trying to make the official example for Apache Jena Text to work with an rdf file. The official example is given here. Honestly, I think that there is too less documentation and the example is too generic. It does not provide a real rdf file to…
mat_boy
  • 12,998
  • 22
  • 72
  • 116
2
votes
1 answer

Search Algorithm for a web application that needs to look for a specific value

I'm developing a webapp that will need to download the html form a website and then iterate through the code and try to find a specific but ever changing value (in our case it will be the price for the product). For this, I was thinking about asking…
hjavaher
  • 2,589
  • 3
  • 30
  • 52
2
votes
1 answer

Unary NOT operator in Oracle text search

I am trying to compose a text search query which would return records containing a certain value in one section and NOT containing a certain value in another section. Something like that: SELECT * FROM text_search_table WHERE (contains(text_search,…
2
votes
1 answer

WPF combobox highlight

In WPF, when I enter some text in combobox, it will highlight the item starting with the text I entered. This highlighting will search the whole text i have entered in the combo box. But instead i want the text search to match only the first letter.…
Elangovan
2
votes
2 answers

How to do a recursive grep (search) and automatically look inside archive files especially jar ones?

I am looking for a command that would work like grep -r sometext . but that will know to look inside archives (at least .jar). Extra bonus ;) if we can make it ignore directories like .svn .hg.
sorin
  • 161,544
  • 178
  • 535
  • 806
1
vote
1 answer

Isar: Is there a way to do a text search on the items of an IsarLinks object using indexes?

I have a collection of Bars, each of which have isar links to Foos: @collection class Bar{ Id? id; final foos = IsarLinks(); ... // Bar stuff }; Each Foo object has a field named text, which is a String: @collection class Foo{ Id?…
Captain Hatteras
  • 490
  • 3
  • 11
1
vote
2 answers

Databases: Effectively implement string contains query

I need a way to effectively do a string contains query like: # In SQL LIKE '%some-string%' # In mongo { $regex: /some-string/ } But its very slow when the dataset size is big. Eg. I tried in a dummy DB (with and without an index - no index is…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
1
vote
1 answer

searching for a phrase in Mongodb: weird behaviour

i have the following collection: books> db.books.find() [ { _id: ObjectId("61ab85b0056b5357b5e23e6b"), fields: 'hello good morning' }, { _id: ObjectId("61ab85b5056b5357b5e23e6c"), fields: 'good morning' }, { _id:…
rekotc
  • 595
  • 1
  • 10
  • 21