When do SharePoint Site Variables (stored in Site Proerty Bag) get indexed

Rene Wagner 161 Reputation points
2022-01-18T02:41:32.257+00:00

Hello,

We plan to set up a set of Search Result Sources that will make use of Site Variables stored in the site collection property bag to find content (by matching the site variable values against document/item property values. My question is how/when do the site collection property bags get indexed? I assume that the variables will be indexed the first time the site collection is crawled after it is created, correct? If, after site creation it becomes necessary to make changes to these site variables, will an incremental crawl pick up changes to these site variables when made or is it necessary to re-index the entire site collection to pick up the changes? Or is it necessary to run a FULL CRAWL of the farm (which would not be possible to do every time we make a change in our case due to the size of the farm).

Thanks

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JoyZ 18,111 Reputation points
    2022-01-18T07:51:17.757+00:00

    @Rene Wagner ,

    Per my test, after we add Property Key and index it through PowerShell as shown below:

    $web = Get-SPWeb http://sp13:36043  
    $web.AllProperties["SiteJulie"] = "JulieTest"  
    $web.IndexedPropertyKeys.Add("SiteJulie")  
    $web.Update()  
    

    Then run full or incremental crawl, we can see the crawled property from the search service application:
    165945-image.png
    After that, we can create Managed Property that maps to the crawled property.

    Also, if the property value is updated later, it is sufficient to run an incremental crawl on the items which have been newly created or modified since the last crawl, without re-index.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



  2. sadomovalex 3,636 Reputation points
    2022-01-18T15:02:37.487+00:00

    you need to reindex site after added new indexed property bag (Site Settings -> Search and offline availability -> Reindex site). Check more details here: How to set an Indexed Property Bag Value.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.