Questions tagged [search]
Questions about search algorithm mechanics and implementation. *NOT* for questions about using search tools within an API (e.g. Google, Bing, Facebook).
36,089
questions
1
vote
2
answers
31
views
In Python, I am having trouble finding out if an item is in a list
I am trying to search nested lists for items. The lists will have a mixture of strings and numbers...which don't have to be integers I suppose. Separate from the program I am trying to write, I made a ...
0
votes
1
answer
23
views
Trying to get column data from an a list of dictionaries
I have the following data:
locations = [
{"id": 1,"Name": "Ottawa"},
{"id": 2,"Name": "Ahmedabad"},
{"id": 3,"...
0
votes
1
answer
27
views
Search a Sorted Array for First Occurrence of K
I'm trying to solve question 11.1 in Elements of Programming Interviews (EPI) in Java: Search a Sorted Array for First Occurrence of K.
The problem description from the book:
Write a method that ...
-2
votes
2
answers
25
views
How can I remove automatically via regex and replace \cite[p. x]{authorbla} tags to have a plain text document [closed]
I want to remove any \cite[p. X]{AuthorY} entry in my latex document to get a plain text document that be put into a translation software or spell and grammar checker.
Can anybody provide me the ...
-2
votes
1
answer
10
views
The Settings search box in the Settings window cannot search for anything in Windows11? [closed]
I changed my user name to English name, and replace the chinese user name in Profilelist and environment variable. But i cannot use search bar to get setting content.
https://i.stack.imgur.com/bMJLg....
0
votes
1
answer
25
views
Having problems with jsoup
I'm trying to get an image by searching in google for this i'm using jsoup, and everything is fine, i can get the images, but they're in a very low quality, there is another way to get them with ...
1
vote
1
answer
82
views
Faster way to search through a big string?
I am currently trying to make a program to find blocks of a specific color in a game save and move their position, however with some of the bigger saves my method of searching for the blocks in the ...
0
votes
1
answer
7
views
How do I Backtrack a Stack-Based Depth First Search
I am trying to implement a DFS algorithm to work in a maze. The maze has walls. The DFS gets stuck in a corner and does not backtrack therefore it results in an infinite loop. How should I rewrite my ...
0
votes
1
answer
32
views
Matching values within a dictionary and grouping elements to a new dictionary key
I have a dictionary which has the following form:
{ 1:['a','b'],
2:['c','d'],
3:['b','e'],
4:['g','c']
..........
}
I want to find out if any values from the values matches with values in ...
-1
votes
0
answers
18
views
pseudocode: advanced search algorithm in python
I'm pretty new to python and I have been given the assignment to write pseudocode for a search algorithm in python. The file is supposed to be a large json object and the search algorithm is supposed ...
0
votes
1
answer
38
views
VB.NET DataGridView when I do the search, I would like to exclude the rows that do not have the results I searched for, how to do?
When I search for a number with my textbox, in the datagridview I find all the results together with the lines that do not have the search result. I would like the datagridview to return me only the ...
0
votes
1
answer
31
views
Search categories with input field in VUE.js
I have a little problem, if someone could help me I would be very grateful.
I have to make a list of categories and subcategories for each category. I have to put an input field which will search ...
0
votes
0
answers
15
views
Python search a specific text file in multiple subdirectories for a specific string & then replace another string within same file with found string
Python search a specific text file in multiple subdirectories for a specific string & then replace another string within same file with found string.
To explain this case:
I have a bunch of *.xml ...
-1
votes
3
answers
44
views
search in array by the first two letters of any word within an array
using the following array, I want to search for the first letters assuming that there are several words in the same matrix, it must search in each word, if it finds it it should return in an array
...
-2
votes
0
answers
17
views
Search for a key word in all JSON files within a directory [closed]
I'm trying to find the word "leather" in a enormous group of JSON and JSON5 files, and then output in a TXT which files contain the word.
I've tried a few other things I've found on the ...
0
votes
0
answers
25
views
Depth first search algorithm using prolog
Given a list of positive integer Items whose elements are guaranteed to be in sorted ascending order, and a positive integer Goal, and Output is a list of three elements [A,B,C] taken from items that ...
0
votes
0
answers
23
views
Filtering numbers or strings in a comma delimited object
I am using multi-select to filter out data.
<Multiselect
v-model="roles"
class="input1"
placeholder="Select Roles"
...
-1
votes
0
answers
22
views
Figuring out what is my algorithm time complexity. should be eventually o(n) [closed]
so i got a pretty simple program that searches for a "value". i need to re-write it so it'll be in o(n) time complexity. the program gets m[][] as a parameter and returns true. every number ...
-5
votes
0
answers
31
views
Wordpress webpage not sure if it's published [closed]
I created a webpage about a question on wordpress app and the website opens externally but if I search the word...wbsite5 it doesn't show. can people see the webpage I published
I can't post images
...
0
votes
0
answers
16
views
How to find from which cell text is contained in given cell
So I have a formula that shows if a cell contains text from a list:
=SUMPRODUCT(--ISNUMBER(SEARCH("List of companies in Worksheet A",A1)))>0
It works correct, but I need to further expand ...
0
votes
1
answer
28
views
How to add user input to a list in Prolog then be able to view the list later
"This is my code, I have no idea how to put the data into the 'student_list' so that it will be saved there and then I can search for it later."
Anyone knows how to do this?
main:-
nl, ...
-1
votes
0
answers
14
views
Partial or complete search of a string in Java [closed]
I need to do a search on a string field. the field is the full name.
Example data in the database table:
Name
=================================
JOHN PEREZ GOMEZ
PETER MARIA GONZALES
SANTIAGO MERIT ...
0
votes
0
answers
13
views
Evaluating Semantic Search using Paraphrase Mining
I need to decide on a particular model (between various BERT models, DistilBERT, RoBERTa, etc, pretrained on different datasets) for semantic search. To make this decision, I need to evaluate these ...
1
vote
1
answer
49
views
Is there a way to efficiently search for a value using 2 keys in python?
Let's assume I have this table with 3 columns like the one below.
I can make a list of values and simply iterate through every row but that seems inefficient to my rookie eye if there is a lot of data,...
0
votes
1
answer
35
views
JSON - Get all matching objects using jq
I'm trying to set up automation for an IP address whitelist.
The JSON can be found here: https://ip-ranges.atlassian.com/
I need to generate a list of every "item" in the JSON where "...
0
votes
0
answers
12
views
Search page shows one posts with title" Search" when search page loads
I created one search page from wordpress dashboard and assign Search Page template to this page.
In search.php, I have following code;
<div class="full-width-content">
<h2>...
0
votes
0
answers
27
views
React js - How to show search results in separate page using WordPress API
I have created search box in react where data is searchable form wordpress post api. i want to show this search results in separate page. from below code the page is redirecting to blank page
search....
-3
votes
0
answers
21
views
Search for a word and extract next word using Javascript or Python [closed]
Is there a way to search for a word in a text and extract the next word using Javascript/Python?. I have a text such as this:
Product: Toy Price: 35 Location: Norway Product: Keyboard Price: 45 ...
1
vote
1
answer
21
views
Elastic search un-searchable feild?
I have an index with a mapping field of type text, its called ean_code, but when I try to retrieve documents querying this field, it says 0 results.
I am running the command:
GET <index-name>/...
1
vote
3
answers
30
views
Why is my non-recursive binary search function leading to an infinite loop?
Test case timed out. Possible infinite loop or inefficient algorithm used.
The parameters can't be changed, some test cases are failing. Where am I going wrong?
int binarySearch(int p[], int n, int ...
-1
votes
1
answer
40
views
search in array of array, and return results in one array
using the following array of arrays I need to make a search by letter, if it finds that element it should return in one array
example
const data= [[
"car",
"plane",
...
0
votes
2
answers
48
views
Algorithm for finding the closest sum across different arrays
I have recently started a game programming job and am trying to write an interesting algorithm in C#. I didn’t study IT so my knowledge of maths and code is quite basic. The problem should be code ...
-1
votes
1
answer
33
views
Drive API v3 or v2, Drive.Files.list to list all PDFs at and below a given targetFolder (including PDFs from sub-folders)
I want to use Google's Drive.Files.list(), to list all PDFs in and below a given targetFolder (including PDFs within any/all sub-folders).
The targetFolder happens to be a root folder: GoogleDriveRoot/...
0
votes
1
answer
31
views
Spring boot Jpa search data with multiple fields and paginate results
I am trying to search data on the basis of 5 input fields in spring boot jpa repository also in result will get multiple columns data in pagination. So suppose out of 5 fields only 4 input fields is ...
-1
votes
0
answers
8
views
Search Angular, Only search names Advisor and not search for namesPassenger, Angular in table filter
idAdvisor: number;
identificationAdvisor: string;
namesAdvisor: string;
passwordAdvisor: string;
emaildAdvisor: string;
namesPassenger: NamesPassenger[];
...
0
votes
0
answers
18
views
Cannot implement search for whole flutter app
I want implement a search function that can search through my entire flutter app and not just some strings
1
vote
1
answer
24
views
Setting up a search function on a webpage
Right, so I've managed to cobble together something that sort of works in terms of a search function within my webpage, however say I search for "Amethyst" it'll group "Placeholder1&...
0
votes
1
answer
32
views
Search windows, returns filepath
OK, so I have code that will take the data entered in "A3" and open a widows search with "*" + A3's contents. What I need now is when any file is found with that search to find the ...
-1
votes
0
answers
15
views
Ivory Search: how to display search results in a specific order?
I am using a free version of the Ivory Search Plugin for WooCommerce website (inside top menu bar). Can someone advise how to display search results in a specific order: firstly “Products” and then &...
0
votes
1
answer
17
views
How to search for AWS resources by tag substring?
I'm trying to obtain a list of all AWS resources that have a particular tag whose value contains a particular substring.
Reason: Our resources are all tagged with ServiceName but for some of these ...
0
votes
0
answers
32
views
can the algorithm cost be negative?
I was reading an article and I've found the graph below that represents the algorithm cost, and I was wondering if the values are representing the algorithm cost why they are negative? and what are ...
0
votes
0
answers
24
views
search data structure with custom distance on histograms
I have a list of k-dimensional features M. I want to find in this list the nearest item to a query feature A. Feature comparison is not directly based on a common metric (such as Euclidean or ...
0
votes
0
answers
19
views
Force JQuery Datatables search builder results on custom button click
I am using the JQuery datatables search builder extension to filter my table data on the client-side. I am trying to figure out how to trigger the search(filtering) from a custom button click and not ...
-1
votes
1
answer
22
views
Search by post title wordpress without reflesh
I want to create wordpress search by title without refleshing page. New results have to be shown when more than 3 symbols are typed in search. I've got input with form:
<form id="searchForm&...
0
votes
0
answers
5
views
What will be the optimized way to search an element in a very large array for a particular value?
What will be the optimized way to search an element in a very large array for a particular value instead of linear and binary search.
0
votes
0
answers
9
views
Automatically select text from content to specific if the input value matches what the backend returns Angular
I need your help. I use the API to display a list of articles. The two main fields that come to me from backend are title and summary. I also have a form from one field, with which I do filtering to ...
0
votes
0
answers
26
views
Change color text of matching words during searching Angular
I need your help. I have code with which I display and search for articles. Everything works fine for me, but there is one question. I have a ChangeMatchingColorTextPipe that I want to use to change ...
0
votes
0
answers
12
views
CLOSE - WORDPRESS - custom query that filter slug that partially contains get_search_query
I need a query that return posts filter by keyword ($s), in this case return posts if $s === slug terms. How can I retrieve all posts that have a slug that partially contains get_search_query??
$s=...
0
votes
1
answer
45
views
How to search for elements and change the array? Angular
I need your help. I have a service called articleService and home.component. In home.component I try to display all articles. The fact is that I try to filter by article: enter text into the input and ...
0
votes
0
answers
8
views
Wordpress search for specific section only with results on same page
I have a couple of FAQs (with toggle accordion) and I want to implement a search bar only for those FAQs (not for the whole page, definitely not for the whole site, only for the FAQ section). ...