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

  • ​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...
  • 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...
  • Connecting Google Apps Education Edition with Blackboard
    Editor's note: George Kroner is a Developer Relations Engineer for Blackboard, a company that focuses on transforming and improving the ...
  • Students and others find what they're looking for with Google Search
    When you think about all that a university has to offer, you probably think of classes, curriculum, and alumni activities. But universities ...
  • 30,000 Valeo employees put Google Apps to work
    Tens of millions of people around the world have transitioned from software-based email and personal productivity tools to powerful web-base...
  • Spelling Suggestions and Thumbnail View in Google Docs
    Google Docs lets you create, store, and share work files with teammates and other colleagues. Today we're making it easier for you to s...
  • Google Apps update: Email migration, shared address book, and a cool video
    Posted by Ryan Pollock, Product Marketing As Vikaram noted on the Official Google Blog , today was a big day for Google Apps. We introduced ...
  • Google Apps on Campus: Getting Things Done in '08
    2008 was an action-packed year for Google Apps for Education . We grew by 300% since last year, released two new products: Google Sites and...
  • Collaborating with Google Apps and Socialwok
    Editor's Note: Ming Yong is co-founder of Socialwok, a a feed-based group collaboration application for enterprises that integrates with...
  • 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