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).

1
vote
0answers
7 views

Using sed in Linux to extract lines from a log file

I have a log file which prints the following lines: 01:15:21.882 DEBUG [SampleProcess] Sample Message 01:15:21.882 DEBUG [SampleProcess1] Summary Report Sample Text1: 126 Sample Text2: 2330 Sample ...
0
votes
0answers
13 views

Make tab active which contains the search result in wordpress

In my wordpress site, I have few pages which have tabs. The tabs are generated dynamically from ACF repeater fields.Now, when I use the default wordpress search and the result text is inside a tab, ...
-1
votes
0answers
10 views

Msgbox from different workbook

I have 2 different Workbook: • workbook-1 • workbook-2 I want msgbox in workbook-1 referring to values in workbook-2. For example: In Workbook-1:(sheet1) | A | | B | | C | In workbook-2: (...
0
votes
1answer
27 views

Cannot create a woocommerce search based on custom meta fields

I try to include in my default search custom fields. I followed the link here http://jamescollings.co.uk/blog/extending-woocommerce-search-query-include-custom-fields/ I created a small plugin from ...
0
votes
0answers
7 views

Autohotkey Query Search - How Can I Translate Selected Text & Then Do a Search

Autohotkey do a Query Search (With Parameters example: us into nl > nl 100x results) I Want to Translate My Selected Text and then do a Google Search from that Translated Text. I Now you can do a ...
0
votes
0answers
31 views

Hidden object in jquery for searchbox

I made a search box filter in jquery. My control is looking 2 div. If no match in div, i will hide this div. But when I delete a character, hidden not coming back; Example; i write in input "tr", ...
0
votes
2answers
38 views

Find a specific item from a list using python

I have a list of 20000 Products with their Description This shows the variety of the products I want to be able to write a code that searches a particular word say 'TAPA' and give a output of all the ...
0
votes
0answers
5 views

VBA script copy and paste data from table into separate sheets

I am looking for some help with this macro. I have a table of data which I am trying to break up into separate tabs to make it more manageable to read. Column A contains the ID of the record and its ...
-1
votes
2answers
43 views

What exactly is a 'token' in terms of java?

So I'm working on this program that opens all .java and .txt files in a specified directory, and does some analyzing on these files. One thing my program is supposed to find is the "Most frequently ...
-1
votes
1answer
49 views

A* algorithm gets stuck if there's no path

I found this algorithm but it appears the creator didn't test whether there's cases where there's no path. It seems the length of the open_list gets bigger and bigger if there's no path and I don't ...
0
votes
0answers
30 views

Item return in the list after deleting it on Swipe

I'm having an issue that i'm trying to solve for days. I have a filter method in my RecyclerView that search for certain items by writing something in an edittext. The RecyclerView is opening in an ...
0
votes
2answers
22 views

Custom Post Type search should work for frontend not admin

I have customized search for specific Custom Post Type by using action hook pre_get_posts. It's working fine but the issue is it's also applied in the wp-admin search for posts. function ...
0
votes
1answer
42 views

Search by tag on Laravel AND and OR

I am looking to improve a keyword engine. Here is the context. 3 tables : contents, contents_tags, tags content id | content 8 | My content contents_tags id | content_id | tag_id 1 | 8 | 1 2 | 8 |...
1
vote
2answers
46 views

While loop will not stop when using boolean variable?

I am trying to program a recursive binary search algorithm in python. However, I keep running into an infinite while-loop. I am afraid that it must be something simple that I am overlooking, but I ...
2
votes
1answer
39 views

Depth first search with smart pointers for a binary search tree

This is my first time implementing DFS with smart pointers. I get this unknown error thrown: 1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools \msvc\14.15.26726\include\...
0
votes
1answer
13 views

How to track usage of OpenGrok service

What are some ways we could monitor OpenGrok, both usage and specific searches? Is there any systems either built in or that can be added as extensions? We are running OpenGrok on the intranet but we ...
0
votes
0answers
3 views

Adding search query to search results URL (without access to the page's HTML)

I'm trying to share related webinars via a URL that links to a specific search result. Right now, the search value is housed in the page body, not in the URL: <input type="text" name="query" id="...
0
votes
0answers
28 views

Search all columns in table including linked tables

I have a table with many fields, some of them are linked tables and I need to search through all fields included the collections fields, I manage to make a method that allows me to search all fields ...
0
votes
1answer
15 views

How to search users more precisely using sql?

I have an sql statement that searches for users and their username. Here is the code: SELECT * FROM user_info WHERE username,name LIKE '$search%' and id!='$myId' OR MATCH (name,username) AGAINST ...
0
votes
0answers
6 views

Google map searchbar not showing location on logcat and on the app

its me, again. my searchbar last week was still working till i put notifications then today as i tested it, its not already working. i declared init already and its still not showing on the logcat ...
0
votes
0answers
11 views

NDCG algorithm - how to consider the position of result when computing the score

I was checking the NDCG - gitHub Here we have ranked_items , correct_items ,ignore_items ranked_items , is the ranking of result we got after performing search correct_items , is the ideal ranking ...
0
votes
0answers
22 views

google map searchbar

im currently facing a problem and I can't find the cause of the search not working. The keyboard pops up but when i press enter its not taking me to the place that i searched, which was working a few ...
0
votes
1answer
24 views

search in JSON tree with full structure intect

I take this has been asked before here filter nested tree object without losing structure but what I am looking for is opposite of that. For the JSON data var items = [ { name: "a1"...
-3
votes
0answers
37 views

Get Google keyword search volume without using API? [on hold]

Is there any way to get Google keyword search volume without using API? If yes, can anyone give me an example or documentation?
0
votes
1answer
29 views

Wordpress search result page first then post

I tried to add a function for WP default search, I will like to make it result to shoe page items first, then post items, but it’s not quite working yet. I’m not using any plugin for search. Here’s ...
0
votes
0answers
38 views

Search in Master/detail flow

I'm trying to implement a search in the link Mastеr / detail flow. but the search itself does not occur. I looked through many examples and did not find a solution. Please help. The error occurs in ...
-1
votes
4answers
57 views

Java program to print a character which is available only one time in the string [duplicate]

I am trying to print a character from a string which occurs only one time in the string. Here is the code I am using, but it is showing the answer always as H. How can I fix this? class StringRepeat ...
3
votes
1answer
62 views

Finding Patterns Occurrences In A Large Text File (Currently With Aho-Corasick)

I have a large text (5MB-500MB) file and a set of a few thousand patterns. For each pattern, I want to get the number of occurrences of the pattern in the file. The text contains no whitespaces and is ...
-1
votes
0answers
35 views

Displaying API call values to recycler view [on hold]

PatientSearchApi INPUT: center_id:4 tabID:88888888888888 patient_search: 98 OUTPUT: { "status": true, "result": [ { "patient_id": "3", "...
0
votes
1answer
30 views

Save search query result into a model with django

I have the following code in my view. I want to save the query result (if it's true) into another model. How to achieve this? def scan(request): print(request.session) if request.method == '...
3
votes
4answers
66 views

How to search a string using one or more search words and add a string after each match?

Given a string with one or more search strings separated by a space, I would like to case-insensitively search for matches in a text. When a match is found, I want to append <- immediately after ...
0
votes
1answer
45 views

I need to implement SEARCH BY YEAR and SEARCH WITH DATE PICKER

I have an invoice application with multiple search functionality (searching invoices by type, status and customer id). I need to implement search only by year, and additional search by datepicker (for ...
-2
votes
0answers
26 views

Search on listview is not working - how do I fix that?

The search is not working when you type anything in the program. It doesn't suggest. I mean that when you type to the program. It must suggest items that is similar to the text you have typed. Can ...
-1
votes
0answers
29 views

What should the cost function be in maze problem? (AI class)

I'm doing my assignment of making simple AI agent that finds a path to a goal in a maze. What confuses me is that, in the mazes we were given, all blocks have the same cost. We don't have any data ...
-1
votes
0answers
15 views

Why did Google search stop showing the page

I have a website with different country versions. https://www.example.com/en-us https://www.example.com/en-ca https://www.example.com/en-by https://www.example.com/en-by/products ... Several days ...
0
votes
0answers
20 views

Compare a nvarchar(max) value with a column

I'm trying to search if a nvarchar(max) row match with any keyword of a column in other table. Something like this: SELECT TOP (1) case when c.Keyword IS NOT NULL THEN 'Match' ELSE '...
0
votes
0answers
13 views

How to add multiple filters when searching Stackoverflow questions under a tag? [migrated]

Let's say that I would like to search for questions under a specific tag by the following filtering steps: List all questions within the last 1 months. Keep only the questions that are unanswered. ...
0
votes
1answer
21 views

Laraval Yajra DataTable - how to fetch content via ajax call with user supllied search parameters

After searching in the net as to how to fill up Yajra DataTable with data from any ajax call with user supplied search parameters , I came to this page of the official documentation. It has a code ...
-3
votes
0answers
19 views

Text categorisation API algorithm [on hold]

For my application I need to find a way to categorize user's input into categories. This will usually be products. So for example: The user enters "Fifa 19", and my app should be able to ask the user ...
0
votes
1answer
22 views

How to create and add values to a standard lowercase analyzer in elastic search

Ive been around the houses with this for the past few days trying things in various orders but cant figure out why its not working. I am trying to create an index in Elasticsearch with an analyzer ...
0
votes
0answers
37 views

Process search that will include all sql table

I have 3 sql tables, my intention is to ease user when they want to search the record ; here I have the code for table 1 $sql="SELECT * FROM incomingcallnewbck WHERE Date LIKE '%$search%' OR Name ...
0
votes
0answers
19 views

Searching wagtail images

I'm implementing a image rich webapp with wagtail and elasticsearch. To search for images I want to use elasticsearch and the built-in capabilities of wagtail to index and search for images. The ...
0
votes
1answer
17 views

How to develop search box auto completion from database?

I have seen so many e-commerce websites that provides search box to search products. In that search features most of the search fields are auto-complete. If we enter a letter on field, then it will ...
0
votes
2answers
50 views

Using client side search in react

Search function is working perfectly fine in the console log but when I try to assign that value to rows which is a state. So I setState the rows inside the setState in searchHandler. I know I'm ...
0
votes
1answer
19 views

VBA search data based on list

I have a data table I want to search and return their values based on a list. I'm able to find the list from G2 and return the value in K2 etc, however I need it to also loop on the list and get the ...
0
votes
0answers
27 views

Redirect All Search Links Containing - to + on Wordpress

I deleted all my wordpress tags via phpmyadmin, and most of my post content contains tag links, now I redirected all the tag links to search using .htaccess, I.E example.com/tag/stack-over-flow/ ...
1
vote
2answers
46 views

most efficient way to search in sorted binary tree

Suppose I have a binary tree, I am give the head of the tree (left values are smaller than the values on the right), inside the tree there are ip address, e.g: 2.1.1.7 / \ / ...
0
votes
2answers
22 views

Angular JQuery DataTable, Delay search untill more than one character has been typed

data.compnent.ts: getData() { this._dServices.downloadData().subscribe((value) => this.data = value); setTimeout(function () { const table: any = $('#myTable'); this.dataTable =...
0
votes
1answer
42 views

How to get original positions of listview items after filtering?

This is probably going to get marked as a duplicate, but I've scoured every single post related to my problem on here and none of them fixed it, so I'm making my own post to see if someone can ...
5
votes
1answer
76 views

Stream returns object only if first element of list is equal

I got simple data structure private InMemoryDataBase() { Account account1 = new Account("222", "222"); account1.getPlayers().add(new Player("john")); account1.getPlayers().add(new Player("...