Wednesday, October 29, 2008

Chaos in query-land

I wrote a micro-rant the other day at CMSWatch.com on the need for an industry-standard syntax for plain-language keyword search. I, for one, am tired of learning a different search syntax for every site I go to. I find myself naively assuming (like an idiot) that every search engine obeys Google syntax. Not true, of course. It's a free-for-all out there. For example, not every search engine "ANDs" keywords together by default. Even at this simple level (a two-keyword search!) users are blindsided by products that behave unpredictably.

At any rate, Lars Trieloff pointed out to me yesterday that Apache Jackrabbit (the Java Content Repository reference implementation, which underpins Apache Sling) implements something called GQL, which is colloquially understood to mean Google Query Language, although in fact it means GQL. It does not implement Google's actual search syntax in comprehensive detail. It merely allows Jackrabbit to support plaintext queries in a Google-like way, so that if you are one of those people (like me) who automatically assumes that any given search widget will honor Google grammar, you won't be disappointed.

It turns out, the source code for GQL.java is remarkably compact, because really it's just a thin linguistic facade over an underlying XPath query facility. GQL.java does nothing more than transliterate your query into XPath. It's pretty neat, though.

I'm all for something like GQL becoming, say, an IETF RFC, so that vendors and web sites can begin implementing (and advertising) support for Google-like syntax. First there will need to be a name change, though. Google already uses "GQL" to describe a SQL-like language used in the Google App Engine. There's also a Graphical Query Language that has nothing to do with Jackrabbit nor Google.

See what I mean? It's chaos out there in query-land.

5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. PERMAINAN ONLINE TERBESAR DI INDONESIA

    Website paling ternama dan paling terpercaya di Asia ^^
    Sistem pelayanan 24 Jam Non-Stop bersama dengan CS Berpengalaman respon tercepat :)
    Memiliki 11 Jenis game yang sangat digemari oleh seluruh peminat poker / domino

    - Adu Q
    - Bandar Q
    - Bandar Sakong
    - Bandar Poker
    - Poker
    - Domino 99
    - Capsa Susun
    - BANDAR66
    - PERANG BACCARAT
    - PERANG DADU
    - BD QQ (Games Terbaru)

    Permainan Judi online yang menggunakan uang asli dan mendapatkan uang asli ^^

    * Minimal Deposit : 20.000
    * Minimal Withdraw : 20.000
    * Deposit dan Withdraw 24 jam Non stop ( Kecuali Bank offline / gangguan )
    * Bonus REFFERAL 15 % Seumur hidup tanpa syarata
    * Bonus ROLLINGAN 0.3 % Dibagikan 5 hari 1 kali
    * Proses Deposit & Withdraw PALING CEPAT
    * Sistem keamanan Terbaru & Terjamin
    * Poker Online Terpercayaa
    * Live chat yang Responsive
    * Mensupport semua jenis bank lokal dan tersedia deposit via OVO, PULSA TELKOMSEL


    Contact Us
    Website SahabatQQ
    WA 1 : +855889110527
    WA 2 : +855972076840
    Telegram 1 :+85515769793
    Telegram 2 : +855972076840
    Line : SahabatQQWin
    FACEBOOK : SahabatQQ Reborn
    Agen Domino99

    ReplyDelete
  3. Get Shifting/Relocation Quotation from ###Packers and Movers Delhi. Packers and Movers Delhi 100% Affordable and Reliable ***Household Shifting Services. Compare Transportation Charges and Save Time, Verified and Trusted Packers and Movers in Delhi, Cheap and Safe Local, Domestic House Shifting @
    Packers and Movers Delhi

    ReplyDelete
  4. SDTOTO is the most trusted and most popular official online lottery gambling agent site in Indonesia
    provides 14 international markets with the highest jackpot payout 10,000,000

    With a minimum deposit of 10,000 and a minimum bet of 100 silver

    SDTOTO PROMO & BONUS
    - BONUS ROLLINGAN 1% KHUSUS GAMING SLOT ONLINE
    - BONUS NEW MEMBER 10%
    - BONUS HARIAN 5000 BUAT ALL MEMBER
    - PROMO CASHBACK 10% SLOT ONLINE, IDN LIVE CASINO DANTEMBAK IKAN
    - REFFERAL BONUS UP TO 2%ALL MEMBER

    ������ LINK DAFTAR : DAFTAR TOTO TAIWAN ������
    ������ LINK DAFTAR : CARA MAIN TOTO MACAU 2022 ������
    ������ LINK DAFTAR : SDTOTO BANDAR TOTO MACAU ������
    ������ LINK DAFTAR : DAFTAR SDTOTO ������

    ReplyDelete

Add a comment. Registration required because trolls.