473,799 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a complex text parser for search engines

I've noticed that there are tons of tutories for creating search
engines / search pages using vb.net. What all of these tutorials don't
cover is how to parse the search text the user has enetered to handle
complex boolean searches such as, e.g. "Animal AND NOT (Cat OR Dog)"

Does anyone know of any good (Free) tutorials on text parsing that
could help me create a more complex parser than the normal and
restrictive boolean AND search on all words?

Jul 2 '07 #1
2 3361
On Jul 2, 7:56 am, richard_b_ll... @tiscali.co.uk wrote:
I've noticed that there are tons of tutories for creating search
engines / search pages using vb.net. What all of these tutorials don't
cover is how to parse the search text the user has enetered to handle
complex boolean searches such as, e.g. "Animal AND NOT (Cat OR Dog)"

Does anyone know of any good (Free) tutorials on text parsing that
could help me create a more complex parser than the normal and
restrictive boolean AND search on all words?
Well, how you parse the search string would depend on how your search
algorithm works. What's the link to the tutorial you are using for the
search engine? Perhaps if I see how it performs the search I could
help you with the parser.

Thanks,

Seth Rowe

Jul 2 '07 #2
ri************* @tiscali.co.uk wrote:
I've noticed that there are tons of tutories for creating search
engines / search pages using vb.net. What all of these tutorials don't
cover is how to parse the search text the user has enetered to handle
complex boolean searches such as, e.g. "Animal AND NOT (Cat OR Dog)"

Does anyone know of any good (Free) tutorials on text parsing that
could help me create a more complex parser than the normal and
restrictive boolean AND search on all words?
Have a look at the source code for lucene.net to get ideas on this ...

--
http://bytes.thinkersroom.com
Jul 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
6842
by: Ken in Melbourne Australia | last post by:
If I use the curly bracket syntax (referred to as the complex syntax) within a string, how do I get to call a function within it? The php manual says that the first (or previous) character for the curly bracket has to be a dollar sign '$'. This is fine for variables, arrays and some objects but doesn't allow me to call a function such as addslashes() or trim() before I return the string in the variable.
0
4160
by: R. Rajesh Jeba Anbiah | last post by:
Q: Is PHP search engine friendly? Q: Will search engine spiders crawl my PHP pages? A: Spiders should crawl anything provided they're accessible. Since, nowadays most of the websites are been developed with PHP, you are not supposed to doubt that. As a proof that PHP pages could be crawled and indexed, refer this Google search
7
31561
by: Sabine Jollans | last post by:
Hi, I want to put some words on my homepage so that it is found by search engines. These words should not be visible when viewing the page. I have tried to make background and text the same color, but then the text is visible when selected. Is it possible to change the color of selected text?
24
8067
by: Markus Ernst | last post by:
Hi I have a title with a title gif: <h1><img src="mytitle.gif" alt="This is my title"></h1> So this is text-based browser and search-engine friendly and can be easily formatted with a style sheet. Now I have a separate stylesheet for media="print". As the title gif does
64
6424
by: Manfred Kooistra | last post by:
I am building a website with identical content in four different languages. On a first visit, the search engine determines the language of the content by the IP address of the visitor. What the user sees is content in only one language at a time. He or she can then switch to another language and set this as the preferred language, but again he or she sees content in only this one other language. The question now is: How do I get search...
2
2680
by: David Virgil Hobbs | last post by:
Loading text strings containing HTML code into an HTML parser in a Javascript/Jscript I would like to know, how one would go about loading a text string containing HTML code, so as to be able to use javascript or Jscript to work with the HTML code in the text string, in the same way that one works with XML code in a text string using the XML parser. If I was able to load the text string containing the HTML code succesfully, I would be...
14
1645
by: BrendanMcPherson | last post by:
Hello, Im try to do some tricks to help make a "Search Many Sites from One Location". http://www.act.org.au/b_nexus.htm What I have decided to do is this: 1. You can choose which site you wish to visit from the first page, after pressing go it takes you to a frame page.
20
2786
by: Pete | last post by:
There's probably a standard answer for this, but it's never cropped up for me before. I have a (png) image that includes some text (a labelled group photo of a conference), and it'd be useful if a search engine can find those embedded names too -- without redundantly placing them in visible HTML text. What's a good way to do this? Some of the text can go in the 'alt' tag of the image, which I suppose is checked by a search, but that...
0
1129
by: phl | last post by:
hello, I am trying to explore options on the various types of search engines for searching user input. User input maybe stored in XML files. Does anyone know if there are any good ready made search engines which will automatically index the user input from the XML file(s), so I can create a search functionality based on keywords. I am aware that a DB solution is the obvious route. The purpose here
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.