- There is only one Index in GSA (default collection).
- Collection in GSA is nothing but "view" on the default collection(whole index) based on the URL patterns. To limit search based on URL patterns , you can setup the collection.
- When the user runs a search , "Site" query parameter decides or identifies which collection it should search against. (its like post filtering on indexing).
- If user want to search against specific portion of this index , setup the collection and use site parameter to search against specific to collection.
- "site" parameter can set to single collection or against the multiple collections. Following logical operations AND, OR, NOT and grouping can be used like below. eg :
- To search against single collection products ::: &site=products
- To search against products AND (intersection operation) services collections ::: &site=products.services
- To search against products OR (union operation) services ::: &site=products|services
- To not search in the products ::: &site=-products
- To search in prices AND (products OR services) ::: &site=prices.(products|services)
- Creating Collection
- Goto indexes --> create collection
- Click on edit on collection, to include or exclude the URL's (URL's you add here must also be in the main index)
- Few things about the collections
- You can define as many collections as you want.
- If you define too many complex queries with collections then there might be performance impact that need to test.
- You can't define the collections based on the metadata . But if the documents are organized in separate folder you may try to get the results based on the URL's pattern (collection) and metdata using the search logical operations.
- Following is possible, Include URL pattern is like http://sivavaka.com/parent , http://sivavaka.com/parent/child/subchild and exclude pattern is like http://sivavaka.com/parent/child/ .
- Default Collection: By default when you working with collections in admin console, it includes all collections (/ operator in default collection includes all content in the index)
- Simple search scenario
- When user selects specific category and search for the keyword, there is hidden site parameter will specify which collection to use.
Resources
No comments:
Post a Comment