Questions tagged [search]

Inquiries regarding the inner workings and execution of search algorithms. This excludes inquiries regarding the utilization of search tools embedded in an API (such as Google, Bing, or Facebook).

Search results in Eclipse are not displaying the filename

After extensive searching across multiple search engines, it seems like I am the only developer facing this particular issue. It has been affecting my productivity for years now. My problem arises when I perform a File Search in Eclipse 3.7.2 on Centos (a ...

Searching with multiple key value pairs in jQuery autocomplete is not organizing the results

In one of my projects, I am using jQuery UI autocomplete search to look for subjects. However, I have encountered a problem. You can find a replica of the search implementation in this js fiddle. The first search uses a single JSON array object without an ...

Live search with AJAX, navigate to a different page, and showcase the findings

I currently have multiple web pages that all feature the same search form. What I want to achieve is for the results page to load dynamically as the user starts typing, replacing the current page and displaying all relevant items found. How can I implement ...

The importance of managing session data

Here is my issue: I want only one session to run at a time. Consider the following query: $get_crs_mysqli .= (!empty($_SESSION['userSearch']))?(" AND (course_title like '%".$_SESSION['userSearch']."%') OR (course_title like '%" . $_SESSION['userCategory'] ...

Remove any empty spaces within a string that appears on the same line as a specific string

I'm a beginner in the world of Python and this marks my first attempt at coding. While I have come across similar issues while researching solutions, as a newcomer, I am struggling to adapt them to my specific needs. Therefore, I've taken the lib ...

Personalizing the layout of Joomla's search results page

I am facing an issue with Joomla search results appearing on the home page instead of a new page. I have tried to modify the mod_search.php file by setting the item id to 0 as suggested in online posts, but unfortunately, the changes are not reflected in t ...

Searching for specific patterns using MySQL and PHP - What is the best approach?

Having just started working with MySQL and PHP, I am uncertain about how to proceed. Despite reading up on pattern matching, I still find myself struggling to apply this knowledge to my specific issue. In my database, I have a column dedicated to codes (C ...

I require a Material-UI search icon to be positioned on the right side of the input box

https://i.stack.imgur.com/Tppgr.png Is there a way to ensure the search icon appears on the right side of the input box in material-ui when using React? Are there specific classes that need to be added for this? See below for the relevant code snippet: ...

Populating a dropdown box in MySQL database using PHP and implementing a search function

Hi there, I have a question about creating a search feature on a webpage using a textbox and a dropdown box. The table I am working with has the following fields: Occupation field) and allows users to input additional search criteria in a textbox, return ...

Explore bar with search button

I'm facing an issue with the code I have for searching on my website. Currently, when a user fills in their search word and presses enter, it executes the command. However, I would like to only run the search script when the user clicks a button inste ...

implement a search feature within a linked list structure

My goal is to implement a search function in Python for linked lists. The purpose of this function is to search for a specific string within the linked list nodes (where each node contains a word). For example, given a linked list with nodes: I -> am ...

When the search is focused, I prefer for the expanding search box to overlay the menu section rather than pushing it aside, all without the use

I am working on a search box with a subtle animation: <input class="search" type="search" placeholder="Search"> To make it expand when focused, I used the following CSS: .search:focus { width: 225px; outline: none; } I also experimented w ...

The semantic UI search functionality is malfunctioning

My experience with semantic ui involves encountering an issue where the search result on a website appears empty, despite finding the JSON result in my console. This is the JavaScript code I am using: $('.ui.search').search({ apiSettings: { u ...

Breaking up an array in PHP according to search outcomes

My dataset consists of a multidimensional array generated from a MySQL query that aggregates results by various groups and sums. The array details costtotal and hitcount for different variations of 'ad_type', 'click_status', and 'l ...

Presenting Findings Generated by the AWS CloudSearch Solution

Looking for a solution to efficiently display JSON results from AWS CloudSearch? Check out the example link provided below. I want to create a user-friendly interface that integrates facet functionality and is easy to implement. Attached is a demo search i ...

Looking for a way to efficiently retrieve results by matching multiple string keywords as you go through each line of a file (fs)?

Essentially, I have multiple search strings provided by the client that need to be matched with each line in a file. If a line matches all of the inputted strings, I should add that line to the results array. However, when I run the code below, it only ret ...

What is the most efficient way to transfer a large search results array between NodeJS and AngularJS?

My application is built with NodeJS for the back-end and AngularJS for the front-end. I've run into an issue where sending a search query from Angular's $http to the back-end results in a bottleneck when there is a slow internet connection. Angular has to ...

List of tuples indicating the index of tuples that are incomplete

Issue at hand: I currently possess a series of tuples (a,b,c) and I am seeking to locate the index of the first tuple commencing with specified 'a' and 'b'. For instance: list = [(1,2,3), (3,4,5), (5,6,7)] In this case, if a = 1 and ...

Using JavaScript to locate and emphasize specific words within a text, whether they are scattered or adjacent

I need help finding a JavaScript code for searching words in a text using a form and a search button. I found one that works for multiple words in a row, but it doesn't work if the words are mixed up. What changes should be made to fix this issue? Any adv ...

What is the process of integrating autocompletetextview with listview?

After successfully displaying the response from the server using a list view, I attempted to add an AutoCompleteTextView to search for items by name. However, upon running my app, it crashes and displays errors. I have already sought help on this issue. T ...

Is it possible to pass multiple parameters in one onClick event?

My search bar is located below. Upon clicking the 'search' button, I wish for it to update results and redirect to a different page simultaneously. function SearchBar(props) {   const [innerSearch, setInnerSearch] = useState(""); ...

Tips for showing items on the screen with a search text input in Expo and React Native

Utilizing react native and expo, I have JSON data presented on the iOS simulator screen that was fetched from an API. Positioned at the top is a search bar where users can query the displayed data. For instance, if the data appears as follows: A a compa ...

Can you search for a specific word within a mediumblob file stored in the database?

Within my database, I have the following information: name mime size data Untitled.txt text/plain bigint(20) Mediumblob I need to search for a specific word within this file using a search command. ...

Revamp your search experience with Algolia's Angular Instant Search: Design a personalized search box template

Custom Search Box Request: My goal is to implement an autosuggest search box using Algolia Angular instant search with an Angular Material design. To achieve this, I am planning to customize the search box component by replacing the standard <ais-sea ...

Creating a GET request to search for multiple properties in MongoDB using React and Node.js

In my node.js react application, I've been experimenting with the db.collections.find function. This application involves searching and hiring teachers for various subjects. My goal is to create a user interface that presents 3 select boxes: one for t ...

Send search engines to a particular route, like 'mydomain.com/somepath'

My website is built using Next.js. I am aiming to have the main application on the index route: ...mydomain.com/. However, I also want a dedicated landing page at route: ...mydomain.com/mylandingpage. My question revolves around how to inform search eng ...

Looking for a .NET MVC AJAX search solution. How can I enhance the code below?

I am looking to implement a search functionality using AJAX. I have tried using the get method in my controller by passing the search string, but it is not working as expected. Below is a snippet of my controller code, where I retrieve the search value fr ...

How to retrieve and delete a row based on the search criteria in an HTML table using jQuery

Here is the HTML code snippet: <table class="table" id="myTable"> <tr> <th>Type</th> <th>Counter</th> <th>Remove</th> <th style="display:none;">TypeDistribution</t ...

Issue with AngularJS filter not functioning properly

I have a specific situation where I am using an ng-repeat directive in the following manner: {"ng-repeat" => "city in cities() | filter: search"} In this context, each city object is structured like so: { attributes: {name: 'Boston'} } Furt ...

I keep getting strange results when I use Marqo's image search feature. Any suggestions on how I can resolve this

I set up a customized marqo index for image search with the following configuration: settings = { "treat_urls_and_pointers_as_images":True, # enables us to locate an image file and include it in the index "model":"ViT-L/14" ...

Can search criteria be saved for later use?

I operate a classifieds website that allows users to search through ads. I am contemplating ways to save search criteria so that users can easily reuse them for future searches without having to input the same details over and over again. For instance, th ...

The function appears to be failing to execute

I'm currently working on a dynamic search bar using AJAX to retrieve results from a database. I've noticed that when I check in the debugger, the code isn't triggering the handleSuggest() function which is responsible for updating the inner ...

Utilizing AJAX to determine if a specific phrase includes the queried terms

Currently, I am working on an AJAX search bar. At the moment, it only allows me to search for exact words in my table. ID|Skillset|Description| 1|game|i love game 2|photography|i love to take photo 3|game|game is my forte My current query searches for ex ...

Exploring the capabilities of searching through a Shopify storefront using GraphQL within a Remix React

As a beginner in Remix React projects, I am currently struggling to grasp the project's structure. My goal is to create a SearchBar Component within the Header that displays the first 10 products based on user input. Below is the code snippet of my Search ...

Tips for consistently showing the addition symbol in my search bar

I created a code snippet that showcases a search box with CSS animations and jQuery toggling functionality. One issue I encountered is ensuring that the plus icon remains visible at all times, whether the search box is expanded or contracted. How can I ac ...

Introducing the beta version of Material UI, featuring a dynamic table component with

Utilizing the latest Material-UI react component library, I am attempting to implement a global search feature throughout the entire table. I have attempted to use regex to achieve global and case-sensitive behavior but encountered an error: "match is n ...

Exploring mammoth text data in Python

I am currently diving into Python development with my first project, which involves parsing a hefty 2GB file. After discovering that processing it line by line would be agonizingly slow, I decided to opt for the buffering method. Here's what I'm ...

Load data into semantic-ui search component using ajax requests

Having trouble populating the semantic-ui search component with JSON data retrieved from my server. The documentation is not helpful and I haven't been able to find a solution online. Here's what I have so far, appreciate any help. This snippet is from in ...

Python 3.5: exploring various elements within a given list

My task involves working with a list: myList = [abc123, def456, ghi789, xyz999] To search for particular values in myList, I have a designated "sub-list" of allowed values: allowed = [abc123, xyz999] Note: My objective is to verify if the elements in a ...

Creating an SQL select statement with a three-level expression is a complex task that requires careful planning and

How can I create a SQL select query with 3 levels of expressions and statements? Typically, my website operates on an SQLite database and the search results are displayed using the following SQL query: "SELECT DISTINCT * FROM amz WHERE Title LIKE "$qq% ...

Tips for showcasing the chosen option from an autocomplete input field in a React application

Currently learning React and working on a search feature for a multi-form application. The goal is to allow users to search for a student by first name, last name, or student ID using an autocomplete text field. The options for the autocomplete text field ...

Locate a specific condition within my document and display the entire row using Python

def novice(): dataFile = "studentgrades.csv" fileData = open(dataFile, "r") userScores = [] if "novice" in row print (row) fileData.close() I have attempted to write this function but I'm unsure ...

I am experiencing difficulties trying to retrieve information from a SQL database using PHP

Hey there, I'm currently working with a SQL database that stores property information. I have set up a search button to look for properties based on the propertyLocation field. For example: Property ID 1, 5 Bedroom House, London Property ID 2, 3 Bedroom ...

Struggling to modify the state in React using an array

I have successfully made a call to getApiSuggestions and received back data. However, I am facing issues while trying to assign this data to my state. Although the console output shows that the value for response is an array, when I try to assign it to wi ...

Using AngularJS filters to search through various fields of data

My goal is to conduct a search using multiple fields of a repeating pattern in combination. I am facing an issue where searching by query.$ model does not allow me to search from multiple fields. Specifically, I want to search for the number 1234 along wi ...

How can you automatically scroll to the top of the window in Next.js after updating the search value in a search bar?

Picture a scenario where there is a button placed somewhere. Once this button is clicked, the text on it moves to my search bar. How can I also make the window scroll down to the search bar after the value is set in the Input element displayed below? ...

quickest method to retrieve the parent array key within nested arrays using PHP

How can I efficiently retrieve the parent array key with multidimensional arrays? For instance, consider the following array: array( [0] => array(0=> sample, 1=>picture, 2=>frame, 3=>google) [1] => array(0=> iphone, 1=>or ...

Look up and access the file

My latest script is designed to search for a specific file in the current directory. If it doesn't find the file, it will move up one directory and try again. The script functions properly when the file is found. However, if the file is not present, ...

PHP/jQuery search field

I am currently working on creating a search box using php and jquery to retrieve search results from a database. My goal is to have the search query triggered as the user types into the search box, finding data that matches the keywords entered by the user ...

Angular - Enhance User Experience with Persistent Autocomplete Suggestions Displayed

Is there a way to keep the autocomplete panel constantly enabled without needing to specifically focus on the input field? I attempted to set autofocus on the input, but found it to be clunky and the panel could still disappear if I hit escape. I also ...

Include a search button within the search box of the Custom Search Engine

Can anyone help me with adding a search button to my HTML code? I've tried implementing it, but when I try to search something on a website like YouTube, the results show up without displaying my search query. How can I fix this issue and what changes ...

Tips for creating an API URL request with two search terms using Angular and TypeScript

I have developed a MapQuest API application that includes two input boxes - one for the "from" location and another for the "to" location for navigation. Currently, I have hardcoded the values for these locations in my app.component file, which retrieves t ...

What is the best way to search for a specific word within a list of sentences, but only focusing on the first word of each sentence?

list = ["This is an example", "Hello there! This is an example"] search = input("Enter keyword: ") for title in list: if search in title: print(title) #Output Search: This This is an example Hello there! This i ...

Encountering a "Cannot read property 'protocol' of undefined" error when attempting to implement a search bar with Laravel and Vue JS using the Vuetify Framework

Currently, I am working on creating a search bar using Laravel and Vue JS with the Vuetify framework. Below are my controller functions: /** * Retrieve names and references of all projects for the user. * * @param \Illuminate\Http\Reques ...

What could be causing the issue with my filter page not being able to retrieve any results from the

I am currently working on a filter page that is designed to display results in a table based on the selection made from a dropdown list. While I have written the necessary code and no errors are being detected, the results from the database are not showing ...

Ways to effectively direct to the correct page of a topic within search results

In my forum's search function, I have set it up so that the results are displayed in batches of 10. Users can navigate through these batches to view more search results. The topics shown in the results contain the searched words, and everything is fun ...

Customizing the search functionality in Yii2 gridview to implement asynchronous data retrieval using

Currently, I am using the Yii2.0 search functionality and have encountered a situation where the ajax search works effectively when displaying the grid as is. However, I need to modify the layout (refer to the screenshot below) in order to conduct the sear ...

Error: The property 'children' is not found in type '{ children?: ReactNode; }'

I have been working on implementing the search bar feature from the provided link. Despite my efforts to match the types correctly, I keep encountering a TypeScript error. Homepage.tsx const [searchQuery, setSearchQuery] = useState(query || '' ...

Utilizing AngularJs for searching strings in a function

I'm currently working on implementing a search function using angularjs. However, I have encountered an issue where the function returns results based on my search query but when I delete the search query, it displays all objects in the set. Here's the cur ...

Discovering the best way to utilize pagination for searching all data within Angular 8

Hey there, good morning everyone! I'm currently working on an Angular 8 app that showcases a table filled with data from a database. This table comes equipped with a search box and a pagination feature using the "Ng2SearchPipeModule" and "JwPaginatio ...

Looking to filter JSON data with Vuejs?

I am trying to search through this JSON array for a specific key: track_order The data I receive from the server is stored in the orders variable: "records": [ { "phone": "09********8", "fullName": "******", ...

Issue with navigation using arrow keys in Material UI select dropdown

I am facing an issue with the mui multiple select component where I have added a textfield inside. The problem is that the keyboard arrow up and down list navigation is not functioning properly. Instead, when using the arrow keys onkeydown, it focuses on t ...

Guide to iterating over a set of data and retrieving the items based on specified query parameters

I'm currently working on querying data using nodeJS to extract custom information from a JSON file. My goal is to retrieve the most played games based on total playtime among users. Here is the JSON data: { "data": [ { "userId": 8, ...

When the statement is enclosed within a while loop, an empty tag is not

Working on a custom website for a non-profit organization and I'm stuck on the search page. Here's what's going on... The search results are showing up, but when there are no results, nothing is displayed. I can't seem to figure out this issue. while($r ...

Looking for search suggestion functionalities in an HTML input field

I am currently working on a website project and have a database filled with recipes to support it. The issue I am facing is related to the search feature on my webpage. At the top of the page, there is a textarea where users can input their search queries ...

exploring the differences between beautifulsoup and re when conducting searches using regular expressions

When using urllib2.urlopen to fetch the source code of websites like this one, I decode the bytes and extract the code marked as applet using beautifulsoup. The code snippet may contain lines such as: <param name="G_00" value="espacio='E1' tipo='macro' ...

Can the glob function in PHP accept a series of values as a range?

Currently, I have a significant amount of files stored within a specific directory, and to locate particular files using PHP's glob function. Below is the code snippet that I am currently using: /* SAMPLE FILE NAME: PR330037JED10220161204.csv */ $dir ...

What is the best way to prevent duplicate calls in my basic search function?

Seeking a solution for handling API calls outside of the React component, I have implemented a basic search by title query using a public API. Check out my code on CodeSandbox. import * as React from "react"; import axios from "axios"; ...

alike sequence from preserved selection

I'm currently exploring a method to validate if a user's input closely matches any existing string contained in a pickle file. Let's say we have a scenario where a user enters their name... userInput = input("Please enter your name: ") .. ...

Unable to locate element by id in the search results on Amazon using Selenium

I have implemented the given python script: from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.firefox.options import Options from selenium.webdriver.support import ...

Find an element within an array in a separate JavaScript file (leveraging AngularJS)

I am new to AngularJS and decided to create a custom map with my own markers that I defined. To do this, I started by creating a JavaScript file containing an array: var myMarkers=[{ method1='..', methode2='..' },{ method1=&a ...

"Concealing Categories in Joomla Search Results: A Guide for Maintaining Privacy

When using the Joomla Search module, it will list all categories that match the search query. For instance, if "iPhone" is searched on the website, it shows a list of categories first before articles. I want to find a way to hide these categories from the ...

Set a custom primary key for myself and enforce the exclusion of the default _id field in MongoDB

I have a couple of queries: 1- I need to retrieve data from the database using an ID, but the operation is based on the automatically generated key by MongoDB (e.g. _id). Instead, I want to search based on a field that I created myself like id. To achieve ...

Locate Postcode and Page with HTML and PHP

I'm looking to develop a straightforward postcode/page locator for a website where users can input their postcode and get directed to a specific page based on whether the company covers that location or not. It's similar to what you see on this website: ...