New Business Software

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Thursday, 12 October 2006

Tech Tip: Collection Math

Posted on 11:25 by Unknown
Posted by Nitin Mangtani, Google Search Appliance Product Manager

We were talking today (well, actually we were IM'ing over Google Talk in response to an email, but thats beside the point) that although there is a lot of interesting information that finds its way to our blog, we haven't been using it as a forum to share with everyone some technical tips and tricks we come across for our enterprise products. So this will mark the first in an ongoing series of "tech tips" for the Google Search Appliance, Google Mini, Google Earth, Google Apps, etc.

One powerful feature of the Google Search Appliance is the ability to create multiple collections. Collections are logical views of information in the index, as defined by URL patterns. This allows you, for example, to index the entire contents of your intranet, but then divide it up into logical groups of content. One approach may be to divide it up functionally, like a collection for Finance, one for HR, Engineering, Sales, Support, etc. However, as you start to break down your content into logical groups, its often necessary to give any one group of users search capabilities across multiple of those collections at the same time. You might want to make it so a sales person not only searches the 'sales' collection, but also searches the 'marketing' collection as well. Or there might be some general content like corporate policies and holiday schedules that should be available to everyone.

For this, you could either create lots of unique collections with duplicate rules, but that requires more ongoing maintenance. Luckily, the Google Search Appliance supports the use of logical AND and OR operators on the collection parameter.

To specify which collection you want to search over, you set the site parameter on the GET request. The following is a simple GET request of the Google Search Appliance where the collection specified is one named 'all_content':

http://search.corp.mycompany.com/search?q=query+string
&site=all_content
&client=default_frontend
&output=xml_no_dtd
&proxystylesheet=default_frontend
Now, what if we wanted to do a query and ask for anything in either the 'sales' or 'marketing' collection? You can use the boolean OR [|] operator on the site parameter. So your GET request would be:
http://search.corp.mycompany.com/search?q=query+string
&site=sales|marketing
&client=default_frontend
&output=xml_no_dtd
&proxystylesheet=default_frontend
What if you wanted to only return information that was in both the 'engineering' and 'support' collections? You can use the boolean AND [.] operator on the site parameter:
http://search.corp.mycompany.com/search?q=query+string
&site=engineering.support
&client=default_frontend
&output=xml_no_dtd
&proxystylesheet=default_frontend
Using the boolean AND [.] and the boolean OR [|] operators can make working with collections more powerful as well as significantly lowering ongoing maintenance efforts as content changes and collection definitions evolve. Give it a shot!
Email ThisBlogThis!Share to XShare to Facebook
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Help customers find their way with new Google Maps gadget
    Last week, I looked up directions to the hotel in Sacramento that I had booked for the Fourth of July weekend. As I had never been to that p...
  • ​Modern browsers for modern applications
    ​The web has evolved in the last ten years, from simple text pages to rich, interactive applications including video and voice. Unfortunatel...
  • Start Me Up
    Posted by James Wang, Google Mini Product Specialist Yes, I know, you just read that title and now have the Rolling Stones stuck in your hea...
  • Go go gadgets...in Google Sites
    Thousands of developers have created gadgets since we first released the gadgets API four years ago, and millions of people use gadgets ever...
  • Google App Engine for Google Apps
    Posted by Gabriel Cohen, Product Manager - Google Apps You may have seen the recent announcement of the preview release of Google App Engi...
  • Run Even More of your Business in the Cloud
    Posted by Scott McMullan, Google Apps Partner Lead; Maureen Bradford, Product Marketing Manager, Google Enterprise On the Google Apps team w...
  • Making desktop search look good
    Posted by Ryan Pollock, Google Enterprise We've just released the newest version of Google Desktop for Enterprise, and if we do say so o...
  • Google Apps Gets Gmail's Faster, More Flexible New Codebase
    Posted by Jeremy Milo, Google Apps Marketing Manager Those of you who read the Gmail team's blog may have seen an announcement a while b...
  • The Return of the Enterprise Superstars
    Posted by Ryan Pollock, Product Marketing Last year we established the Google Enterprise Superstars award to recognize companies that use Go...
  • A new look for Google Docs spreadsheets
    When you next open a spreadsheet in Google Docs, you'll notice a number of updates to the spreadsheets interface. The simplified toolbar...

Categories

  • admin
  • Android
  • cloud computing
  • developers
  • earth and maps
  • education
  • enterprise
  • events
  • gmail
  • gonegoogle
  • Google Apps
  • Google Apps Blog
  • Google Calendar
  • google commerce search
  • google docs
  • Google Email Security and Archiving
  • Google Enterprise Search
  • Google I/O
  • Google Maps
  • google message security
  • Google Search Appliance
  • Google Site Search
  • google sites
  • Google spreadsheets
  • Google Video
  • Google Wave
  • government
  • guest post
  • hints and tips
  • innovation
  • IT
  • K-12
  • large business
  • mashups
  • medium business
  • migration
  • mobile
  • new features
  • non-profit
  • partners
  • Postini
  • productivity
  • small business
  • spam and security trends
  • success story
  • switch
  • university
  • viewpoint
  • webinar
  • webmaster

Blog Archive

  • ►  2010 (14)
    • ►  January (14)
  • ►  2009 (178)
    • ►  December (11)
    • ►  November (12)
    • ►  October (15)
    • ►  September (19)
    • ►  August (18)
    • ►  July (19)
    • ►  June (13)
    • ►  May (15)
    • ►  April (15)
    • ►  March (14)
    • ►  February (13)
    • ►  January (14)
  • ►  2008 (78)
    • ►  December (9)
    • ►  November (16)
    • ►  October (8)
    • ►  September (8)
    • ►  August (3)
    • ►  July (4)
    • ►  June (4)
    • ►  May (5)
    • ►  April (5)
    • ►  March (7)
    • ►  February (5)
    • ►  January (4)
  • ►  2007 (79)
    • ►  December (6)
    • ►  November (7)
    • ►  October (6)
    • ►  September (8)
    • ►  August (4)
    • ►  July (9)
    • ►  June (6)
    • ►  May (10)
    • ►  April (7)
    • ►  March (7)
    • ►  February (1)
    • ►  January (8)
  • ▼  2006 (76)
    • ►  December (4)
    • ►  November (6)
    • ▼  October (13)
      • Enterprise-apalooza
      • Wikis for Work
      • Joint Webinar with Persistent Systems
      • Tech Tip: Flexible Query Expansion Policies
      • Apps for all
      • Federal Assistance
      • A Compliant Google Search Appliance
      • Tech Tip: Collection Math
      • Extending Enterprise Mashups
      • Step up to the Blackboard
      • Start Me Up
      • Energizing Google Earth
      • More Free Stuff
    • ►  September (10)
    • ►  August (6)
    • ►  July (9)
    • ►  June (6)
    • ►  May (7)
    • ►  April (3)
    • ►  March (3)
    • ►  February (7)
    • ►  January (2)
Powered by Blogger.

About Me

Unknown
View my complete profile