Looking for search engine-like word matching

I wonder if there's any package that can do word matching along the lines of search engines.
Let's say I have two ArrayLists of Strings:
'keywords' containing the Strings to search: "one", "two" and "three"
'match' containing the search criteria.
If 'match' contained "one" then the method would return 'true'. If 'match' contained "seven", the method would return 'false'.
Not really difficult, but the search engine syntax specifies the following:
Keywords that begin with "+" are mandatory
Keywords that begin with "-" must not be found
Keywords without prefix may be found
E.g. "+one", "+two" would return 'true', but "+one", "+four" would return 'false'. "+one", "four" would return 'true', since "four" doesn't have to be found. "+one", "+four" would return 'false', since "one" was found, but "four" was not. "-four" would return 'true', since "four" isn't part of the Strings to search. etc. etc. etc.
Does anyone know where to find a package that does this?
Regards,
Eric

Well, why write something if someone else has already done it? :-)
As for the searching of "four": Keywords that have a "+" or no prefix must be matched, so it returns 'false'. So it only returns 'true' if the list contains "four".
The whole point of the "+" is that if you have several keywords, the ones with "+" are mandatory, the ones without aren't.
So "+one", "+two" means "one" AND "two", whereas "one", "two" means "one" OR "two".

Similar Messages

  • How to add a search engine  like What do you love of Google ?

    how to add a search engine  like What do you love of Google ? I use Glims but it doesn't work or I don't know how to go about it
    Thanks

    You can also add any search engine not already listed in Glims by using the method described here:
    http://www.machangout.com/tutorials/addsearchengine
    Just enter the name you give the search engine in the name field, and the URL for it in the Query URL field.

  • When i use a search engine like google, yahoo, etc., when I click on the link I am immediately redirected to a different site. How to I prevent this?

    when i use a search engine like google, yahoo, etc., when I click on the link, I am immediately redirected to another site. Many times I must hit "back", and click on the link again. Sometimes I am redirected again to another and different site. If I go back again and re-click, it will then take me to the link that is listed.

    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • Making our site to search by search engines like google, yeahoo...etc

    Hi All,
    To make our client site search and display results by google / yahoo or any other search engine what needs to be done?
    we kept "meta" tag keywords and description in all our html file and mastheaders.
    What we need to do for making our site searchable by search engines ( like yahoo search and google search etc)?
    Do we need to register with the search engine sites or search engine will search our site automatically by checking "meta" tags in our web pages.?
    All our webpages are in KM.
    Thanks,
    PradeeP

    Hi Pradeep,
    I havent tried this before, but would like to add my 2 cents to this topic.
    I guess you could start by submitting your site to google - http://www.google.com/addurl/
    Search engines rely on a lot more than just the meta tags and other header information. I guess Google relies on something called PageRank and also track backs in order to determine the relavance of your site to the search criteria.
    You may also search for document related to SEO (Search Engine Optimization) but not sure if that would work.
    Thanks,
    GLM

  • Meta tags for search engines needed only to homepage mainly ?

    meta tags for search engines needed only to homepage mainly
    ?

    .oO(123polis123)
    >meta tags for search engines needed only to homepage
    mainly ?
    A title and maybe a meta description belong to every single
    page. But
    much more important is usable and properly structured
    content.
    Micha

  • Everytime I go to a search engine like Bing or Google and click on the link to a website, it sends me to the wrong page. I don't have this problem with Internet Explorer, so what can I do as far as fixing the problem on Firefox?

    Anytime I enter what I'm looking for in the search engine and click on a link, it goes through multiple web addresses until it takes me to an indirect page, and the first few webpages on the link that appear during the loading process are the same. I actually don't know what those websites are though.

    Sounds like you have some search redirect Malware or a Rootkit.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for Rootkit removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • Looking for a font like...

    I've recently discovered this font and I really like it:
    It's drift (from Artwiz).
    But I need to use accents and other characters (like ¿) and drift doesn't support those (actually I think none of the Artwiz fonts are capable to do that that). Well, the thing is that I'm looking for a similar font with those characters included.
    Hope you can help me.
    (Waiting for Daisuke_Aramaki answer )

    Daisuke_Aramaki wrote:Take a look at screen from the sgi font package. Not sure about the accents, but since it's been around for ages it could render those. Lucida Typewriter is another one i can think of.
    Thanks a lot! I never heard about sgi-fonts before, screen works perfect and looks "cleaner" than drift, which is satisfactory for my eyes.
    I'm ashamed of myself.
    Google for the term 'pixel fonts'. Some specific fonts that come to mind are gohufont (search these here forums), progsole, and pragmata.
    Hope you find something suitable
    EDIT: Doing some research for you:
    http://proggyfonts.com/index.php?menu=download
    http://www.fsd.it/fonts/pragma.htm
    http://dsg4.com/04/extra/bitmap/
    http://aur.archlinux.org/packages.php?ID=33806
    http://kottke.org/plus/type/silkscreen/
    http://minifonts.com/mini7.html
    Thank you, but actually i know and used before all those fonts except silkscreen and Pragmata.
    EDIT:
    Only one annoying thing so far:
    Matter of time...
    Last edited by teh (2010-06-25 07:33:03)

  • OTN's search engine returns non-matching results

    I plugged "agntsrvc.exe encountered a problem" into the web site's search engine. The returns were nonsensical, i.e., when I searched the returned documents for "agntsrvc" there were no matches. Basically, the site's search engine is useless.

    Hi John,<br>
    <br>
    Fortunately google exist.<br>
    Search libociei.so on forums.oracle.com with Google<br>
    <br>
    Nicolas.

  • Keywording for search engines?

    I'm a real novice at tech stuff and am interested in purchasing iWeb for a photography business site. Can I do keywording with this software so that my site will be found by search engines? Is this a professional enough web program for creating a business website? Thanks.

    A lot of photographers use iWeb for their sites.
    Most of them make the mistake of using the iWeb Photos and Albums templates which makes the images unsearchable.
    A lot are drawn to the Darkroom theme which makes for slow downloading pages.
    You'll find out about this on the 4 pages starting here.....
    http://roddymckay.com/PhotoSatellite/iWebPhotoTemplates.html
    Keywords are added into URLs, page titles, page names, captions, text etc and there's nothing magic or technical about this - just time and effort.
    You can add the essential title tags into iWeb or do it post publishing.
    I'm in the process of putting together a short tutorial on SEO which I hope to publish later today.
    Look for it here in a few (or more than a few) hours...
    http://www.iwebformusicians.com/iWebMusicWebsite/iWebTutorials.html

  • Looking for a Rewind like app for Tiger

    Back when I had my Performa 6360 running OS 8.1, I bought a utility called Rewind from Power on Software. The app could restore my Mac to an earlier date, or restore any file that had been deleted from the trash,etc.. It was more poweful than the similiar features found in TTP, and Norton.
    Does such a utility exist for OSX? Rewind failed (and why Power on is trying to hide any indication that it ever existed) for a number of reasons. For one the utility slowed down my Mac by 50%, and for two the utility created huge archives, and often corrupted its restore rescue soft boot image.
    I know such a utility may not be as essential in OSX as in the earlier OS. That os would often crash for one. My ibook has crashed no more than 20 times in the 10 months I have owned it. My Performa crashed that many times in 1 month alone.
    John

    You wrote: "But I am afraid that Retrospect is not the same as Rewind, or Norton Go Back for Windows."True. However, since you have Retrospect, if you're using Backup Sets for backup, you can Restore a disk for which there is a Backup Set to any point in time for which a backup session exists.
    Perhaps the reason there is no Rewind or Go Back for Mac OS X is because it is far more stable than Windows, as you note.
    Next time you're looking for solutions, I recommend searching MacUpdate or Version Tracker. The user-submitted reviews accompanying the listings are helpful in sorting the wheat from the chaff. Both commercial and shareware/freeware solutions list on those sites and you'll generally find an answer faster than posting here.
    You wrote: "Therefore I have come to the conclusion that this is yet another limitation of owning a Mac...No question my XP box has many advantages, but its also quite obvious that OSX is far more stable and secure than XP."Only you can decide for yourself which platform fits your needs best.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Looking for newer Mobo, like the MS-7345 Platinum P-35.

    Hello,
    I'm thinking about upgrading my P-35 MS-7345. I really like the MSI brand. I'm going on 5 years, but because of possible GPU issues (like screen ghosting, Non-responding, and timer continues to spin, even when I make a very simple video action, like adding a transition, everything freezes and hangs, to the point of rebooting. 
    Some people have asked if i updraded Win7 drivers for the MSI boardw hich i'm sure i did. Some asked me to check the board for bad or damaged caps, so I checked both the GPU, and Mobo, but could not see anything.  Then someone told me it could be the Power supply...really?
     In looking at Video cards, Like the PNY Quadro 600 ($150.00) requires a PCi-E 2.0x16, which I have now, but the higher end cards like the PNY Quadro 2000, ($400.00) and others, reqiuire a PCI-E 3.0x16.
    WISHY WASHY~  Don't know if i should wait to get a new mobo, before I buy a new card, becuz it's going to be a while. I don't want to buy the Q600 DDR3 now, to be obsolete and a non-performer compared to the Q2000 DDR5, which would be more faster, then I wonder, i7, more DDR3 memory, and a new Mobo, then use a slower DDR3?  Ummmmmm.
    To be honest, I like MSI, I bought my new MSI Platinum five years ago, and love it!  I'd like to keep it if i could, but technology supercedes practicallity, with the newer atx case with front USB 3.0 (mine is only 2.0....if it's backward compatible, then fine.) I'd like to ahead of the game, but not if i'm going to go BROKE!
     With my old build, with the mobo, Intel Quad Q6600,700W Toughpower PSU, memory,hard drives, That set me back about $1200.00.
    So..... for someone like me who is not a gamer, does not overclock, wants a minimum of 32GB DDR3, 700W PSU, three SATAII hard drives, does anyone have some Mainboard choices of newer LGA 1155 or 2011 that would either of these work?
    This time, I'll need the i7 (or i5) new mobo, new DDR3 memory...up to minimum 16GB, maybe 32GB, and that's that. I'll use what I can,. or give or sell this tower and everything inside to my sister.
    I was only looking at these two for specs:
    Z77A-G43 DDR3 1600  LGA 1155 ($ 97.00)  OR
    X79A-GD65 (8D) ATX DDR3 2400 ($ 291.00)   
    I know the MS-7345 Platinum is off the production, but is there a board out there that's similar to the MS-7345 P-35?  {it's just easy to set up.}
    MAINBOARD ~
    MSI P35 Platinum/Intel P35 Chipset Crossfire 1395 (MS-7345)
    POWER SUPPLY ~
    Thermaltake "TOUGHPOWER" 700W ATX 12V - 2.2 & EPS 12V
    CPU ~
    Intel Core 2 Quad Q6600 2.40GHz (4 cpu's)
    DISPLAY ~
    EVGA Nvidia Geforce 8600GT (512MB) DDR2 128-Bit
    (Memory clock speed 700MHz / HDCP Capable PCI-e / Total memory 4071MB (Driver version 8.17.12.9610) 2-29-12 DirectX11
    MONITOR ~ 20" Viewsonic - VX2035WN
    60Hz ( Screen Res. 1280 x 800) True Color (32 Bit)
    HARD DRIVES ~
    Boot drive > WD SATAII - 74GB Raptor (10,000 rpms) 16MB > 4.6MS
    Storage drive > WD SATAII - 2TB Green (7200 rpms)
    Storage drive > WD SATAII - 500GB Caviar Blue (7200 rpms)
    External drive > Seagate 3TB
    OPERATING SYSTEM ~
    Windows 7 Pro OEM (64 Bit) (6.1, Build 7601) SP1
    BIOS ~
    American Megatrends Inc. v.1.10 / 11/10/08
    Current Bios version - 1.A0 / VGA Bios v. 60.84.41.00.06
    MEMORY ~
    8GB DDR2 / PC6400 / 800MHz (8192 MB) RAM
    Available Physical memory - 6.12GB
    Paging file > 4463MB Used, 11917MB Available
    AUDIO ~
    Realtek High Definition Onboard Audio
    CASE ~ Coolermaster CM 690 / ATX
    MAINBOARD ~
    MSI P35 Platinum/Intel P35 Chipset Crossfire 1395 (MS-7345)
    POWER SUPPLY ~
    Thermaltake "TOUGHPOWER" 700W ATX 12V - 2.2 & EPS 12V
    CPU ~
    Intel Core 2 Quad Q6600 2.40GHz (4 cpu's)
    DISPLAY ~
    EVGA Nvidia Geforce 8600GT (512MB) DDR2 128-Bit
    (Memory clock speed 700MHz / HDCP Capable PCI-e / Total memory 4071MB (Driver version 8.17.12.9610) 2-29-12 DirectX11
    MONITOR ~ 20" Viewsonic - VX2035WN
    60Hz ( Screen Res. 1280 x 800) True Color (32 Bit)
    HARD DRIVES ~
    Boot drive > WD SATAII - 74GB Raptor (10,000 rpms) 16MB > 4.6MS
    Storage drive > WD SATAII - 2TB Green (7200 rpms)
    Storage drive > WD SATAII - 500GB Caviar Blue (7200 rpms)
    External drive > Seagate 3TB
    OPERATING SYSTEM ~
    Windows 7 Pro OEM (64 Bit) (6.1, Build 7601) SP1
    BIOS ~
    American Megatrends Inc. v.1.10 / 11/10/08
    Current Bios version - 1.A0 / VGA Bios v. 60.84.41.00.06
    MEMORY ~
    8GB DDR2 / PC6400 / 800MHz (8192 MB) RAM
    Available Physical memory - 6.12GB
    Paging file > 4463MB Used, 11917MB Available
    AUDIO ~
    Realtek High Definition Onboard Audio
    CASE ~ Coolermaster CM 690 / ATX

    If you already looked at X79A-GD65 (8D) and you are going for 16GB ram minimum or 32GB a Socket 2011 Core i7 would be a good choice. If you are just looking for an easy to setup system a X79A-GD45-8D would be of the same socket without any flaws but still somewhat less expensive.

  • Looking for finger/LDAP like in.xfingerd

    Hi,
    I am looking for a finger daemon that will work with LDAP, similar to the old in.xfingerd. As I understand it, in.xfingerd is no longer distributed as part of openldap.
    I've looked at something called fingerbob, but this program recommends itself for internal network use only.
    Any ideas?
    Thanks

    Google search for the specific item that you want and plenty of suppliers web sites will give you what you want, some free some for purchase.
    eg " clip art clown"

  • Optimizing iWeb Sites for Search Engines

    Does anyone know of a way to manually adjust the meta tags in iWeb publishing in an effort to improve SEO?

    Welcome to the discussions. You could try this free iWeb SEO Tool:
    http://www.ragesw.com/products/iweb-seo-tool.html
    ...It says: "Easily change title tags, meta tags and alternate image text to help improve search engine rankings."
    See also this article:
    _SEO For iWeb: How to get your iWeb Websites into Google & Other Major Search Engines_.

  • Spry optimization for search engines

    I read in this post on the Dreamweaver forums (
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=189&threadid =1272744&enterthread=y
    ) that data loaded by Spry is not available to search engines to
    index. Is there a relatively simple way to make that data available
    to the search engines? I know one poster mentioned a PHP call into
    a hidden div but I am not sure how you would accomplish that. Any
    help would be greatly appreciated.
    If anyone has a better suggestion of how to access my data
    you can view the page in progress at
    3andband.com/TestSite/iframeTest.html
    note: The menu bar is currently only a placeholder image.
    Also, I am using an iframe because I need to maintain the
    persistance of the music player.
    One more question, would the spry:state property be capable
    of providing any sort of loading message will the content of the
    iframe loads? Since it is loading spry data.
    Thanks!

    Hello Bonniechester, '''try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    '''If Firefox is open,''' you can restart in Firefox Safe Mode from the Help menu:
    * Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    '''If Firefox is not running,''' you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    ;[[Image:SafeMode-Fx35]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Hidden Content for Search Engine Use

    Has anyone heard of web sites having hidden layers full of
    text content that they don't necessarily want on the front page but
    is there so that search engines could index their site much
    better?

    Are you willing to take the chance? And - why would you have
    such a thing
    so far out of the main content section anyhow?
    It smacks of spamming, and if you were my competitor for
    position, I'd
    report you.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "rmiman" <[email protected]> wrote in
    message
    news:f17lhh$7lh$[email protected]..
    >
    quote:
    Originally posted by:
    Newsgroup User
    > > Really, why would they do that? What's a better
    method to promote your
    > > site
    > > more without having to bog your front page down
    with information you
    > > really
    > > don't want to display?
    >
    > That's the point Google is making. If it's not content
    you don't want
    > people
    > to see, then it must not be very legitimate or important
    information.
    >
    > The main argument is that you could spam Google to rig
    the search results.
    > For instance:
    >
    > CocaCola.com
    >
    > <p>Welcome to Coke's web site</p>
    > <p class="hiddenOffScreen">Pepsi Pepsi Pepsi Pepsi
    Pepsi Pepsi </p>
    >
    > So, searching for 'Pepsi' would return CocaCola.com
    >
    > I tend to agree completely with google here. If it's
    viable/important
    > content, put it on the page. It's a design issue, not an
    HTML issue.
    >
    > -Darrel
    >
    >
    >
    > Good point but does this really come up often enough for
    it to be an
    > issue?
    >
    > For all they know, I could have a button in the bottom
    left hand part of
    > my
    > screen that if you rollover, it'll simply display that
    hidden layer full
    > of
    > that text content.
    >

Maybe you are looking for