DXM and Web Content Management
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CMS Knowledge Base

G2 Search Purge and Re-Crawl

Step 1: Locate the collection name for the collection you wish to purge and re-crawl

There are several ways to locate the collection name:

1. Goto the search page and monitor network activity through your browsers developer tools. There will be a request to the searchg2.crownpeak.net domain which will contain the collection name in the url (ie. http://searchg2.crownpeak.net/<colleciton-name>/select?q=*...

rtaImage.jpg

2. Use your browser's developer tools to search for ".collection." If the site is using the Crownpeak JavaScript library, there will be a call to CrownPeakSearch.collection("<collection-name>") to set the collection name. The parameter passed to this method call will be the collection name.

 

rtaImage (1).jpg

 

Step 2: Verify the collection is not a Real Time Indexing collection

We do not want to purge collections that are populated via Real Time Indexing (RTI). Purging a collection populated via RTI would mean that you would have to re-publish every all site assets from the CMS in order to re-populate the G2 Search collection. This is an expensive task and should be avoided. To verify that we are not purging a RTI collection:

1. Log into the CMS
2. Navigate to the publishing package used by the site (ie. Settings > Publishing > Packages)
3. If the collection identified in step 1 can be found under the "Search G2 Servers" dropdown, then the collection is most likely being populated via RTI. 

 

rtaImage (2).jpg

 

You can also verify by issuing the following query in your browser: http://searchg2.crownpeak.net/<collection-name>/select/?q=* (ex. http://searchg2.crownpeak.net/crownpeakv2-live-realtime/select/?q=*). Generally, if a collection is populated via RTI, it will have an asset id for the id node in the results. With a crawled collection, the id node would contain the source url instead.

 

rtaImage (3).jpg

 

Step 3*: Purge the Collection

1. Launch the ACB Tool
2. Select Post /collections/{collection}/purge from the "Address" dropdown
3. Replace {collection} with the collection name found in Step 1. 
4. Click Send

 

rtaImage (4).jpg

 

Step 4: Verify that the collection has been purged. 

You can either run a search from the website and verify that no items are being returned or issue the following query (make sure to replace <collection-name> with the collection name found in step 1).
http://searchg2.crownpeak.net/<collection-name>/select/?q=*

Step 5*: Issue a Crawl

1. Using the ACB Tool, select Post /collections/{collection}/crawl from the "Address" dropdown

 

rtaImage (5).jpg

 

2. Replace {colleciton} in the "Address" with the collection name found in step 1. 
3. Click Send

Step 6: When the crawl finishes verify that results are being returned from the site's search results page. 
 
*Note that the ACB tool is an internal Crownpeak tool. Please submit a ticket to support if you need help running through steps 3 and 5.
Labels (2)
Comments

Where I can find this ACB tool? I do not see this in the recent Crownpeak V3. 

Hi Amitabh,

 

The ACB tool is an internal Crownpeak tool. Please submit a new support case if you need help with this.

 

Regards,

Ed