Most voted "quest" questions
Questions about a search algorithm or its implementation. *NO* for questions about using search tools within an API (e.g.: Google, Bing, Facebook).
Learn more…242 questions
Sort by count of
-
51
votes6
answers15594
viewsHow to do a search ignoring Javascript accent?
Suppose I have a list of words, in Javascript (if necessary, already ordered according to the rules of collation): var palavras = [ "acentuacao", "divagacão", "programaçao", "taxação" ]; Notice I…
-
17
votes3
answers3083
viewsHow to do a search ignoring Python accent?
Suppose I have a list of words, in Python (if necessary, already ordered according to the rules of collation): palavras = [ u"acentuacao", u"divagacão", u"programaçao", u"taxação", ] Notice I didn’t…
-
17
votes2
answers618
viewsHow can we not allow indexing by search engines?
Those days I put my domain in Google and he got my Web Site and my System. I wish my System was hidden from Google and any other search engine. You could do that? And how to get indexing already…
-
14
votes1
answer2902
viewsHow does google’s "Search for similar image" feature work?
I need to create a manager for a very large image bank, where in this manager besides the search for title and description, there should be a resource that searches for visually similar images. For…
-
11
votes4
answers317
viewsWhy are maps "faster" than arrays?
I have always read and heard that maps are much faster than search arrays. Until I decided to see how much and did a jsperf: http://jsperf.com/maps-vs-arrays/ What I’d like to do is understand which…
-
11
votes2
answers3185
viewsBinary search in chained list
How can I perform a binary search on a simple chained list with head? Also if it is possible to do this, if there is some special method. In the EP I can not count beforehand the amount of elements…
-
10
votes3
answers3229
viewsFind certain dates in VARCHAR field in SQL (Mysql)
I have the following condition: WHERE sv_users.userDataNascimento LIKE '%95%'; And this condition searches a date (11/12/1995), of the kind VARCHAR and not Timestamp, one year ending with the…
-
9
votes1
answer280
viewsSearch tool for my site on Google
How to include a search within the Google search engine? It would have to include a meta tag in my website for this to appear on Google? A little difficult to explain, so I will illustrate with…
-
9
votes9
answers12142
viewsSearch via ajax during input text ( autocomplete )
I did a search using ajax that when clicking a button triggers a request with the term searched and returns with data that fills a combobox html (select). So far so good. However, I found it…
-
7
votes2
answers4107
viewsDictionary Search
I have the following Dictionary: public static Dictionary<string, string> ObterCodigo() { return new Dictionary<string, string> { {"18", "Teste"}, {"19", "Teste"}, {"02", "AAA"}, {"03",…
-
7
votes1
answer188
viewsSecurity, what threats besides an SQL Injection do I have to worry about a search field?
I’m getting deeper into web programming (with php) and I have this doubt, I’ve seen some similar things in some places, but going straight to the point I wanted to tell me what are the main security…
php web-application security-guard quest sql-injectionasked 8 years, 8 months ago Rafael Nobrega 194 -
7
votes2
answers38101
viewsChecking if value exists in an array via search field
In pure javascript I can use indexOf(), something like that: var chaves = ['wmv','3gp','mp4','mp3','avi']; if(chaves.indexOf("avi") != -1) { alert("Ok!"); } But in the case of a search ground I’m…
-
6
votes2
answers240
viewsSearch returns equal data
I’m making a search system where there are some fields (conditions) to search and find the results. These fields are not mandatory, if the person type something he will find by the data entered, if…
-
6
votes2
answers256
viewsOptimization of custom search tool
Guys, I’m creating a search page that gets, via POST, the information on a form containing several checkbox. See below that there are several sequences of results and is marked in orange one of them…
-
5
votes2
answers1679
viewsSearch System - Select within another
Hi, I’m running a search engine, but I’m kind of a layman when it comes to querys. The method I thought to refine the search, which in this case would be a simple search between two fields of a…
-
5
votes1
answer627
viewsDo one page websites appear in search engines?
One page sites are listed normally in search engines? There are several articles and it seems that One page sites are not very friendly to searchers, this is a reality? In which cases? Only in…
-
5
votes3
answers586
viewsFind files containing string and rename
To locate files whose name contains a particular string, we can resort to find as follows: File example: 1429331804.H568641P9577.xxxx.example.com,S=17846:2, Command to locate by xxxx.example.com:…
-
5
votes5
answers713
viewsindexof does not find element in an array
The indexOf() is returning me -1 even though I have this element, I am doing so: pessoas = []; pessoas.push({"nome": "Pedro"}) pessoas.push({"nome": "João"}) pessoas.push({"nome": "Maria"})…
-
4
votes1
answer355
viewsWordpress Search for post
I have a pertinent question that I have been trying to resolve for some time. On my website I have 2 custom search modes and on different pages, however when creating the 3rd I see the results on…
-
4
votes1
answer94
views -
4
votes1
answer374
viewsSearch for closeness
I am in search of tutorials that help me implement a search for proximity (as in this link:https://www.palfinger.com/pt-BR/bra/representantes-de-vendas/localizador-de-representante). Note that…
-
4
votes1
answer2064
viewsSolr, Lucene and Elasticsearch what are the differences? When to use one or the other?
What is the difference between Elasticsearch, Solr and Lucene? When using one or the other?
-
4
votes1
answer156
viewsSolr I/O increases over time
I’m running about eight servers with solr Servers (version 3.5) behind a Load Balancer. All servers are identical and LB is set to weight by the number of connections. The servers have about 4…
-
4
votes2
answers514
viewsC# how to do database search using parameters
I have the following code public DataTable PesquisarPorNome(string NomePesquisado) { try { DataTable tabela = new DataTable(); SqlDataAdapter adaptador = new SqlDataAdapter("SELECT * FROM…
-
4
votes1
answer42
viewsWEB Systems What is the best way to escape from Searchers and make it invisible
When it comes to WEB systems What would be the safest and most used way for it to become invisible to search engines? I know there are the "Goals" but I think there should be more reliable way…
-
4
votes1
answer41
viewsHow to search a character in a set of javascript strings
I have a set with certain strings, it is a vector, need to be done searches for characters in this set. Case: Be it V my set of strings contemplated by: ["ana", "paula", "cris", "voa",…
-
4
votes2
answers92
views -
4
votes1
answer2544
viewsHow is the basic functioning of algorithm A*?
I’m reading regarding the search algorithm A* to be able to implement it in the future. I know it’s used to find a path in a graph, but I can’t visualize very well how it’s done. However, I am…
-
3
votes5
answers9733
viewsHow to get the index of a javascript object searching for the value?
I have such a JS object (fictitious values): { aifuw : 7, hsjwo : 5, hsgqk : 137, jskwe : 9483, NNNNN... : N... } I need to get the index where the value is 137. The ways I tried didn’t work out.…
-
3
votes1
answer69
viewsMap Substring Solr
I have the following question, I have the model city(name, uf, province) I’m trying to implement the Sunspot search method, but I’m getting it on my own: # modelCity.rb searchable do text :name end…
-
3
votes4
answers935
viewsStep-by-step operation of binary search algorithm
I’m trying to solve the following problem: Create a graphical representation by illustrating ALL steps (where the start, middle and end) of the search for the value element 57 of the following list:…
-
3
votes1
answer616
viewsQueryset on Django without case-sensitive
I have a question about Querysets in Django. I need to search a field that’s a Charfield, only the research I’m doing appears to be case sensitive. And I wanted that when searching for 'Stack' the…
-
3
votes1
answer247
viewsI can’t do a word search between brackets in php
I created a function to check if some words exist in an array. I want to search for words within "[ ] brackets". Example: [how] [to give], [to love] ... For this, I am using the function…
-
3
votes2
answers422
viewsCreate dynamic news site optimized for Google
I want to create pages on a specific news site and I thought initially to store in a database the news information (title, subject, news text, etc). As soon as my page noticia.aspx was accessed,…
-
3
votes1
answer349
viewsHow Popular a Listview, and her Popular another Listview by Primary Key?
I have two Listviews that I need popular using LINQ to SQL (C#, WPF project) from a search field. When typing in the field(textbox) the Keydown event will popular the first Listview (1), as the…
-
3
votes2
answers119
viewsSearch for words on the website
I’ve been practicing web programming for a while. At the moment I want to know how to do a Chrome Ctrl+F-style word search: by typing the characters it already points out the respective words. I…
-
3
votes1
answer988
viewsSearch for List Element
I want to search an element of a list through a name (character vector). I get the name (espm) in the function and start to search. The problem is that the function always tells me that "There is no…
-
3
votes1
answer29901
viewsExcel formula to search part of the text in a table
I have a table of banks and codes in two columns. Ex.: Banco do brasil S/A 001 Banco do Estado do Rio Grande do Sul - Banrisul 041 Banco Santander do Brasil 033 Banco Mercantil do Brasil 208 Banco…
-
3
votes1
answer408
viewsDepth Search with Prolog - how to limit depth?
I am implementing an in-depth graph search in Prolog, I already have the following: %arestas: edge(c4,b4). edge(b4,b3). edge(b3,a3). edge(b3,c3). %determina que o grafo é nao direcionado edge(V1,…
-
3
votes2
answers307
viewsSearch(Json + Javascript)
I’m a designer and I’m trying to get into this front world...I have some questions. I’m starting a javascript search that accesses the…
-
2
votes3
answers408
viewsWhat is the best way to create PHP-related posts?
I have a system that I use, but I wanted to have a system to leave more filtered the search for related posts, currently using the REGEXP of SQL to do, I have already used the LIKE and the results…
-
2
votes1
answer130
viewsInput bugging for no reason
I made a program that computes (by a DB itself using fstream) patients of a hospital. It has functions to output (one only for ostream using the iomanip and another to ofstream and fstream) and…
-
2
votes1
answer497
views -
2
votes2
answers538
viewsConcatenate array of selected checkboxes to use as a search filter
I have a search with several checkboxes that can be selected and added dynamically by the user. Since I don’t know the amount, I was thinking of doing the following: go through all of them and…
-
2
votes1
answer129
viewsSearch ignoring accent on AWS Cloudsearch
I’m using AWS Cloudsearch, and my question is about how I perform a simple search, like "bone", and it returns the records containing "cap", or "tennis" and return the records with "tennis". I read…
-
2
votes1
answer454
viewsCreate link with form data
I have an external search site ready where the search results generate a link similar to this: http://example.com/pesquisa?utf8=✓&search=itempesquisado&x=0&y=0. I would like to create a…
-
2
votes1
answer1250
viewsHow to search for similar words or synonyms in Postgresql
I need to get a survey to return similar words I found the phonetic research it can even be used to refine the search I need, but I think this is not ideal. For example, in a database I have several…
-
2
votes1
answer183
viewsFetch phrase within files . Cs from a specific folder using C#
I would like to know how I can find a phrase inside files . Cs of a specific folder. You don’t need to develop code, I just want to know what/what functions to use and how to use them. I couldn’t…
-
2
votes2
answers158
viewsproblem with regular expressions in php
i am having a problem in PHP. I created a search system with php without using database. the search works perfectly, the system can search a word in the files, the problem is in the display of the…
-
2
votes2
answers48
viewsHow not to let a Domain appear on Google and other search engines
I have an online system and would not like my domain to appear on google or other search engines, would like to make it private. there is some way to do this?