Questions tagged [text-search]

202 questions
1
vote
0 answers

Whoosh Phrase Frequency in One Document

I am trying to find the frequency of phrases in the text. But if there are several phrases in one document Whoosh still counts the whole document as a hit but not the Phrases entry. Example: self.analyzer =…
1
vote
1 answer

Searching the contents of HTML files for particular words

I'm developing an app for iPad which loads HTML files and so displays my content in a funny and cute manner. Now starts my nightmare, I try to search random words inside these files and don't know how. I am thinking about using some kind of…
SquallMan
  • 31
  • 1
1
vote
1 answer

Can a text be searched Blockwise in a PDF using PyMuPDF?

page.getTextBlocks() Output [(42.5, 86.45002746582031, 523.260009765625, 100.22002410888672, TEXT, 0, 0), (65.75, 103.4000244140625, 266.780029296875, 159.59010314941406, TEXT, 1, 0), (48.5, 86.123456, 438.292048492, 100.92920404974, TEXT, 0,…
Lav Mehta
  • 92
  • 1
  • 2
  • 13
1
vote
0 answers

jupyter lab: case sensitive text search

if type ctrl+f in jupyter lab, there appears a text finder, but the search is not case sensitive. How may I configure it to make an case sensitive search?
1
vote
1 answer

Creating multiple rules in Azure search Synonym map is not working

I am creating a synonym map like below, { "name": "country-synonym", "format":"solr", "synonyms": "germany, dl, deutschland\n india, ind" } But when I queried the synonym to view it, it was created like below, instead of two rules, only one…
1
vote
2 answers

How to search a string for specific numbers in MongoDB?

MongoDB collection_name have some document with key: key_name and value: "1 ff 42". How I can find this document, if I know only, what all numbers in value equal 142? I can extract all numbers from string and "convert" it in Integer. var…
Sergey Blohin
  • 600
  • 1
  • 4
  • 31
1
vote
2 answers

How to find part of string?

I am working with a string. I could find the part of string I need but not all of it. Which part of my code needs to change? s =…
Martin Bouhier
  • 173
  • 1
  • 10
1
vote
0 answers

MongoDB - Search by keyword 'such' not working

Scenario Searching for word such not working in MongoDB. Steps to reproduce In mongo shell: use test db.createCollection("data") db.data.insert({"value": "word1 such word3 word4"}) db.data.createIndex({value: "text"}) db.data.find({$text: {$search:…
1
vote
1 answer

linux sed find replace content on the same line

export const CURRENT_VERSION = '1.0.61 (2018.07.13.22.32) - UAT1' export const CURRENT_ENVIRONMENT = ENVIRONMENT.TEST1 export const environmentVariable = getEnvironmentFile(CURRENT_ENVIRONMENT) app.js file content is as above. I am trying to…
raaone7
  • 529
  • 1
  • 7
  • 16
1
vote
1 answer

Google places api text search issue

If I use 50,000 meter radius in my query I get the results but very near by places get omitted. if I type same keyword in google maps results are completely different. but results are exactly same if I keep radius to 1000 meters why so ? Can anyone…
akshay_shahane
  • 4,423
  • 2
  • 17
  • 30
1
vote
1 answer

How to display directories that begins with small or capital letter in Linux?

I want to display all directory names in directory /opt/BMC/patrol/ that begin with Patrol* or patrol*. Command ls /opt/BMC/patrol/ | grep -i '^Patrol*' produces Patrol3 Patrol3.16 PatrolAgent_3181.sh patrol_cfg.sh It is correct but there are…
ag.lis
  • 31
  • 1
1
vote
3 answers

C# Regular expression search gives false

I am trying to do a program that searches for certain tags inside textfiles and see if there is text in between those tags. Example of tags below. -- -- So i want to search for…
Arto Uusikangas
  • 1,889
  • 5
  • 20
  • 33
1
vote
1 answer

Search a string in a text file in batch script

How can I search a string in a text file line by line and when found a match, copy that whole line where the match was found into a variable? Basically, I have a text file that contains the address/path of all sub-folders in a folder. I want to…
GEEE
  • 31
  • 1
  • 1
  • 3
1
vote
2 answers

Amazon CloudSearch returns false results

I have a DB of articles, and i would like to search for all the articles who: 1. contain the word 'RIO' in either the title or the excerpt 2. contain the word 'BRAZIL' in the parent_post_content 3. and in a certain time range The query I search with…
A.Yung
  • 11
  • 1
1
vote
0 answers

How to set preference in text search index to enable substring Persian text

To have the ability to use sub string search in text search indexing, i used following preference but it doesn't work for Persian texts, instead searching English text works great. Create preference: begin ctx_ddl.create_preference('a_lex',…
AIA
  • 111
  • 1
  • 2
  • 5