Click here to Skip to main content
15,867,568 members
Everything / Search

Search

search

Great Reads

by Patrick P. Frey
This tutorial based on a docker image will guide through the development of a search engine service based on Strus and its Python Bindings within the Tornado web-framework.
by Ajcek84
Using locality-sensitive hashing algorithm to improve performance of searching of musical incipits
by Patrick P. Frey
Article about implications of scalability requirements on full-text search engines and how Strus meets these requirements.
by Arnaldo P. Castaño
This document describes a tabu Search algorithm embedded in a multiobjective framework capable of finding solutions to the zoning problem by allowing the optimization of multiple objectives.

Latest Articles

by Arctype SQL
How to use full text search and the match keyword to find a string in every table in a MySQL database
by Dharmesh Barochia
Recommended best practices for finding and removing Duplicate Text/Documents
by Mehdi Gholam
Smallest full text search engine (lucene replacement) built from scratch using inverted MGRB bitmap index, highly compact storage, operating in database and document modes
by Ajcek84
Using locality-sensitive hashing algorithm to improve performance of searching of musical incipits

All Articles

Sort by Score

Search 

20 Oct 2017 by Patrick P. Frey
This tutorial based on a docker image will guide through the development of a search engine service based on Strus and its Python Bindings within the Tornado web-framework.
27 Nov 2018 by Ajcek84
Using locality-sensitive hashing algorithm to improve performance of searching of musical incipits
20 Oct 2017 by Patrick P. Frey
Article about implications of scalability requirements on full-text search engines and how Strus meets these requirements.
30 May 2012 by Zoltán Zörgő
Supposing that all your entries look like this and you want "Asia"-"Available" and so on, you can use the following regular expression (singleline):(.*?).*?data-tooltip="(.*?)"Parse all the results, and you will have it.Update: the second text sample given needs a different...
10 Mar 2014 by Mehdi Gholam
You need to create inverted indexes or use a component like lucene : https://lucenenet.apache.org/[^]or my article hOOt : hOOt - full text search engine[^]
10 Mar 2014 by Maciej Los
Please, read Sergey's comment to the question and follow below links:How to: Search Strings Using String Methods (C# Programming Guide)[^]How to: Search Strings Using Regular Expressions (C# Programming Guide)[^]
30 Oct 2015 by phil.o
I don't exactly see why you are trying to reinvent the wheel :)Localization framework already has got all what you need.The first wrong thing to do, IMHO, is to handle localizations directly by comparing to a ComboBox' text property. Ideally, you should handle the SelectedIndexChanged...
17 Feb 2012 by vonDy
i have a gridview and a textboxall i wanna do is a searching textbox that on each onkeyup the gridview contents changedi did this part althoughthe problem is when the page postback, the focus on textbox lost.And when i write code in code-behind as textbox.focus(), all the element...
22 Sep 2012 by Wes Aday
You would use the match method, http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_match[^]
18 Nov 2013 by Arnaldo P. Castaño
This document describes a tabu Search algorithm embedded in a multiobjective framework capable of finding solutions to the zoning problem by allowing the optimization of multiple objectives.
29 Mar 2015 by Raul Iloc
In your code you have to manage the input number by removing the starting zero from the beginning of the number like in the code below:string userInput= textBoxNumber.Text;if(userInput.StartWith("0")){ userInput= userInput.Substring(1);}//// Use the user input in your...
28 Oct 2015 by Sergey Alexandrovich Kryukov
In addition to Solution 1.I personally think that "reinventing the wheel" has been one of the most productive activity in the history of technology, especially when it comes to real car/bike wheels. The problem is when the potential inventor is not up to the level achieved by the...
27 Apr 2016 by CHill60
Assuming that you have a SqlCommand object which I will call sqlCommand and your 3 badly named comboBoxes are in order c1 - rent, c2 - gender, c3 - location (I'm using the shorthand because I could not be bothered to create 3 comboBoxes on my sandbox form)Firstly you need to know which, if...
15 May 2017 by OriginalGriff
For starters, You probably want to think a bit more about what you are checking for: the Contains test for Suspected Files will work - but is liable to false positives - but the white list using Contains is going to remove positive matches that it shouldn't. For example, if the "bad file" is...
13 Jun 2017 by Pete O'Hanlon
Ah, the good old "how do I improve SEO" question. Do you know what? I'll let you into a little secret. Chasing after SEO is pretty much a waste of time and money because what is relevant today probably isn't going to be relevant tomorrow. You'll hear about how you have to maximize inbound links...
20 Jun 2017 by Patrice T
Try private void save_Click(object sender, EventArgs e) { Properties.Settings.Default.Source = textBox1.Text; Properties.Settings.Default.Save(); Application.Exit(); }
25 Oct 2017 by Richard Deeming
Try something like this: private DataRowView GetCurrentRowData() { if (JOGridView.CurrentCell == null) return null; int rowIndex = JOGridView.CurrentCell.RowIndex; if (rowIndex == -1) return null; return JOGridView.Rows[rowIndex].DataBoundItem as DataRowView; } ...
23 Apr 2019 by Dharmesh Barochia
Recommended best practices for finding and removing Duplicate Text/Documents
19 May 2011 by User 1138000
Are you using WPF, or Windows Forms? If it is Windows Forms, there is a method in the RichTextBox class, inherited from TextBoxBase, that might do the trick:ScrollToCaret().Take a look at it.
27 May 2011 by UziTech
You can dynamically create the query like this... if(doctor_info.reg_num != ""){ q +="AND(educaation.reg_num = doctor_info.reg_num) "; }...ORYou can set up the where with LIKE instead of =... q...
4 Jul 2011 by Wouter Splinter
Hi all,I'm using Lucene.NET 2.0. I'm trying to search for an exact word combination into three fields, my search query is as follow: +(title:"overgang bromfiets" figure:"overgang bromfiets" contenttext:"overgang bromfiets")The search result which I found has to be highlighted, but the...
7 Sep 2011 by Niral Soni
7 Sep 2011 by Pete O'Hanlon
They pretty much all support this functionality. What you are looking for to achieve this is a cursor, which iterates over the results one by one and returns this back to be manipulated. While you can do this, it's generally discouraged because databases work best on sets of data.
2 Oct 2011 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
11 Nov 2011 by vegazbabz
Hi,Now I have spent several hours trying to work something out and googling around and reading forums, but I have not found my answer!I need to make some kind of "business application" as a project in my school, where I need to keep overview over a company's customers.I am using...
11 Nov 2011 by saharkiz
since security is not an issue for such a project.i suggest you construct an sql statement using string formatting or concatenationcreate a dataset, add a table to it and append data to the datatable for each of the tables you search for and then bind it to your grid.
7 Dec 2011 by Anuj Banka
i think you simply need to place a script manager and one update panel and in content template place both text box and grid view it will work fine.
21 Dec 2011 by sadel
search button for vb 2010 ultimate in access 2007 database and filtering on a datagridHi all!I create a wpf file and I am trying to make a search button which filters a datagrid. First of all, I have a tab and on this tab a have a datagrid (dgr1). When I load this tab, I fill in a...
12 Feb 2012 by RDBurmon
Try this using System;using System.IO;class Program{ static void Main() { // See if this file exists in the SAME DIRECTORY. if (File.Exists("TextFile1.txt")) { Console.WriteLine("The file exists."); } // See if this file exists in the C:\...
21 Feb 2012 by Richard MacCutchan
I would think that you need to create an index of all the words in your files so you can do speedy searches. You could do this immediately by scanning all files or build it up gradually by creating it as each search is processed. Unfortunately the second option will still mean that early...
18 May 2012 by smrizvi1
Hey everyone! i stuck here with a thing. I use this code in visual c++ to search a book by its author. I have used the approach of bubble sorting then binary searching.Alright, now this is what i have. what i want to do now is to search a particular BOOK by its author without using the...
3 Jun 2012 by vivek.bagdai
For File browser you need two thing1. Directory path (Directory which user selects)2. List of all file.for 1. Requirement you can use FileBrowser,and for 2.you have to add list box and load all file list in the below code will help//Here "c:\user\public\picture" is Directory...
17 Jul 2012 by Tim Corey
While I don't do a lot with Lucene.NET, I believe this link will give you the information you need:http://manfredlange.blogspot.com/2010/07/updating-lucene-index-green-version.html[^]
3 Aug 2012 by Christian Graus
Default.aspx/G...
7 Aug 2012 by BillW33
Its pretty easy to find the answer to your question about the Google search API by using Google. ;)Take a look at these websites:Web search Developer's API[^]How to search google and bing in c#/[^]
22 Aug 2012 by Kenneth Haugland
There are a couple of good articles about it on the codeproject site:http://www.codeproject.com/search.aspx?q=binary+search&x=13&y=9&sbo=kw[^]If you cant find anything here you should have a look at Google[^]. In the future you should try it yourself first, before you ask :)
22 Aug 2012 by ridoy
http://www.dotnetperls.com/array-binarysearch[^]
28 Jan 2013 by Allgaeuer
Hello everyone,i got the problem, that i have to search for a file of a specific type( *.xxx ) within a massive 10 year wide svn history. I am not very familiar with the workings of svn. For the beginning, it would be enough to search over all repositories within the current state, and not...
10 May 2013 by OriginalGriff
The first place to start is Google, which lead me straight to Wiki:http://en.wikipedia.org/wiki/Depth-first_search[^]http://en.wikipedia.org/wiki/Breadth-first_search[^]The depth first is easier than breadth first, but that is to be expected - it's a lot simpler an algorithm.
10 May 2013 by Yuriy Loginov
The way I try to look at Breadth First Search is that you try the immediate possibilities first. Depth First you stick to one path until you hit a dead end and then try a different path. Say you are in a room with two doors that's inside another room with two door and you need to find an...
18 Jun 2013 by Dave Kreskowiak
It's probably the length of a string that would be returned. In Win32, it's common to call certain functions and pass in a buffer or length of 0 for the function to fill. Usually, this causes the called function to return a value that tells the caller how big a buffer needs to be to hold the...
25 Jul 2013 by moniegold18
Hi, if you hadn't done anything yet for your filtering, try to do some research.Try to look at this links:DataGridView Filter[^]Filtering DataGridView Without Changing DataSource[^]GOOGLE DataGridView Filter[^]
27 Aug 2013 by ZurdoDev
1. Add a textbox.2. Add a button3. When clicking the button, run a stored procedure that passes in the value from the textbox and searches for what you need.4. Display the results, possibly in a grid.
31 Oct 2013 by Mr.TMG
Hi all, I would like to display a snippet of text for my end user, to show them where their search criteria matches in the SQL entry.If my user provides 'the' as search criteria, then I would like to return 'the' along whith a group of the surrounding characters(20 or so). Id like to...
11 Nov 2013 by Thava Rajan
you need to change the @WhereClause parameter datatype varchar to Nvarchar and also check the following Quote:Hadith_Urdu columns datatype to nvarchar
13 May 2014 by DamithSL
change Convert[Product ID, System.String] LIKE '%{0}%' toConvert([Product ID], 'System.String') LIKE '%{0}%'
25 May 2014 by SRS(The Coder)
i) Put the search criteria if short into query string or else add them to session variable.ii) Now redirect to the particular page i.e. search.aspx here.iii) Now on load of the search page get the search criteria values from query string or the session variable and do the search operation to...
3 Jun 2014 by Member 10862570
no i dont have any of thatso i made another column, made an array and nested loop to make it work :Dthanks anyway
1 Oct 2014 by Richard Deeming
Remove the else block inside the for loop, and add the "Not found" message inside an if block after the loop has completed:for (i = 0; i
3 Nov 2014 by BillWoodruff
Assume: a WinForms project where:1. ControlsButton: btnTranslate: click to translate English to Arabic: uses rtbEnglish, rtbArabicButton: btnSearchButton: click to search for an English word: uses tbSearchEnglishRichTextBox: rtbEnglish: displays user-entered English...
16 Dec 2014 by OriginalGriff
"should i use openfiledialog? how should i use it?"No - the array of strings filepaths will contain a collection of full paths to the files: OpenFileDialog allows the user to select which file(s) he specifically wants to open. You can't provide it with a list of files for him to pick...
4 Jan 2015 by Sergey Alexandrovich Kryukov
It depends on the size of the file. If the files are small enough, you can use Solution 2. If the files are too big for that, you would need to read line by line and do the search in each line. You can choose to read the bigger chunk of lines and perform the search in the chunk.More...
2 May 2015 by Richard MacCutchan
First you will need to use a StreamReader class to read the file. You will also need some way of identifiying where each paragraph ends. Once you have that then you can use the String class to split the paragraph into an array of words. That will allow you to find a specific item by index. You...
30 Jul 2015 by Mohammed Ibrahim.L
Implementing a TextReader to extract various files contents using IFilter[^]Check this link
16 Aug 2015 by Patrice T
You should try thisdef find_details(id2find): surfers_f=open("surfing_data.csv") for line in surfers_f: s={} (s['id'],s['name'],s['country'],s['average'],s['board'],s['age']) = line.split(";") if id2find==int(s['id']): surfers_f.close() ...
5 May 2016 by AnvilRanger
This is not an easy problem to solve. You mention that you don't want to use SQL, so we can assume you want to look at the actual contents of the Excel file. If you are talking about physically searching the contents of millions of Excel files then you are going to to have to wait a long time....
31 May 2016 by roks nicolas
For those who deal with Text Research in MongoDb 3.2 with the new C# Driver, here is some advice.
6 Jul 2016 by AnvilRanger
I would suggest you forget about the AjaxControlToolkit and look at using the jQuery UI Autocomplete. It is much simpler to work with.jQuery UI Autocomplete - Autocomplete | jQuery UI[^]Using the jQuery UI Autocomplete with ASP.Net Webforms - Implement jQuery AutoComplete TextBox from...
28 Jul 2016 by User 11060979
You Need to concatenate the two boolean Expression (Nme like %x%, Gndr like %y%) by a Logical Operator, in this case it is "AND".dvtble.RowFilter = Nme + "Like '%" + nme.SelectedItem + "%'" + " AND " + Gndr + "Like '%" + gndr.SelectedItem + "%'";Here you will find a nice summary about...
2 Oct 2016 by MayurDighe
Make sure that txt_search.Text is always have some value, either entered by you or default value[e.g. txt_search.Text = "nothing"].Object reference not set to an instance of an object.This usually occurs when there is data available to pass further for processing BUT system doesn't...
1 Dec 2016 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
1 Dec 2016 by Patrice T
We do not do your HomeWork.HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them. Any failure of you will...
21 Apr 2017 by OriginalGriff
Start off by not using a 2d array: create a Student struct and build a linked list (or an array only if there is a known maximum number of students) to hold them. The Student struct has separate pointers for FirstName, LastName, Type. Don't bother keeping a length of name, just null terminate...
22 May 2017 by CHill60
Yes there is. Research material from Google[^] [EDIT - here is a link to the MSDN documentation Building a Drop-Down Filter List for a DataGridView Column Header Cell[^]
22 May 2017 by Maciej Los
There's few ways to achieve that: 1) using filter on DataSet/DataTable through the Select[^] method. See: Filtering and Sorting in Datasets[^] How to: Filter and Sort Directly in Data Tables[^] 2) using Filter method[^] for BindingSource (Caroline - CHill60[^] already mentioned about that...
26 Sep 2017 by Richard Deeming
Assuming your columns are numbers, and not strings: If RadioButton2.Checked Then BindingSource17.Filter = "TAXABLE_ITEMS > 0" ElseIf RadioButton3.Checked Then BindingSource17.Filter = "NON_TAXABLE_ITEMS > 0" Else BindingSource17.Filter = "" End If Now do yourself a favour, and...
27 Sep 2017 by Richard Deeming
Another variation on the same theme! :) Private Sub UpdateFilter() Dim parts As New List(Of String)() If Not String.IsNullOrWhiteSpace(TextBox1.Text) Then parts.Add("[NUMBER_RECEIPT] LIKE '" & TextBox1.Text & "%'") End If If DateTimePicker1.Checked Then ...
5 Feb 2018 by Jochen Arndt
You are creating links and therefore the text within the a tags will be shown as links. If you want to add separators, you have to print them outside the link tags: $letters="abcdefghijklmnopqrstuvwxyz"; for ($i=0; $i
11 Feb 2018 by Dave Kreskowiak
There is no "one code" that goes behind the search button. That is code that has to be custom written by you against your own data sources, what fields you want to search against, how your indexing works, what your search term parsing code is going to support, and how you want the results to be...
29 May 2018 by Michael Dodaro
Use Bing SDK to send a POST request for Image Insights
11 Dec 2018 by Afzaal Ahmad Zeeshan
Quote: I need to search one directory (c:\K_txt) of almost 3,000 .txt files Searching this on the fly is a really very bad idea, and would have to make your users wait each time they make a change in the query. A good approach would be to read your files once, and create tokens (words, in...
22 May 2019 by Thomas Daniels
If they left a message in a forum, you can use the 'Email' link next to 'Reply' to send something privately. But if they disabled the 'Email' link or do not have a forum message at all, then you can't.
4 Oct 2020 by OriginalGriff
For starters, don't do it like that! Never concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Always use Parameterized queries instead. ...
24 Aug 2021 by Luc Pattyn
Three comments: (1) A crucial part of the code isn't shown: when you enter a post. you fill array newpost[] and then call Bloggen.Add(newpost); which is a black box to us. When you search a post. you basically scan a post[] array, so we must...
11 Jan 2022 by Richard MacCutchan
I am not a Swift programmer. However, after reading https://docs.swift.org/swift-book/LanguageGuide/ClassesAndStructures.html[^] I would make the following suggestion. The task is to create an array of City objects, not strings of city names. So...
5 Feb 2022 by Graeme_Grant
You are looking at it backwards. The GridView, as the name implies, is a view into the data. So you filter/search the data and display the results in the GridView. UPDATE I did a quick Google Search and found this: Search records in GridView...
21 Apr 2022 by OriginalGriff
A better approach would be simple: sort the array - C includes the C library function - qsort()[^] which will help you with that. Once sorted, all identical values are side by side - so counting identical values becomes trivial - a single pass...
17 Feb 2023 by OriginalGriff
Try:([a-zA-Z]+)(?\d+)(...
19 Sep 2023 by Richard MacCutchan
The documentation at Amazon Kendra Features - Amazon Web Services[^] suggests it offers intelligent searching. You need to study it in detail.
19 Sep 2023 by Dave Kreskowiak
The problem isn't with Kendra. It's with your understanding of how it works and your expectations. There's plenty of areas that can cause your searches to fail to return expected results. This can be how you're indexing your documents, which...
26 Nov 2023 by Maciej Los
I think you don't understand what semantic analysis[^] are. I'd suggest to start with Stanford's Univerity publication: Learning Word Vectors for Sentiment Analysis[^]. Then, use its Large Movie Review Dataset[^] to create your own model. In...