Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ghufran Ahmad 17 posts 73 karma points
    Jun 08, 2015 @ 07:45
    Ghufran Ahmad
    0

    Examine search: how to get page description

    Hi

    I am trying to get page description through examine search but still not got any proper way could anyone please guide?

    thanks in advance

  • Urvish 252 posts 776 karma points
    Jun 08, 2015 @ 07:52
  • Ghufran Ahmad 17 posts 73 karma points
    Jun 08, 2015 @ 08:23
    Ghufran Ahmad
    0

    Thanks Urvish for quick response

    I have already done with first reference and also getting search results but only name and url I want to descriptions so what property is used for description for example Fields["nodeName"] given name of the page similarly want to get some page description

  • Urvish 252 posts 776 karma points
    Jun 08, 2015 @ 08:34
    Urvish
    0

    Hi Gufran,

    You can do some manipulation in below.

    <IndexSet SetName="MySearch" IndexPath="~/App_Data/ExamineIndexes/MySearch/">
        <IndexAttributeFields>
          <add Name="id" />
          <add Name="nodeName"/>
          <add Name="updateDate" />
          <add Name="writerName" />
          <add Name="nodeTypeAlias" />
        </IndexAttributeFields>
        <IndexUserFields>
          <add Name="bodyText"/>
          <add Name="siteName"/>
        </IndexUserFields>
        <IncludeNodeTypes>
          <add Name="umbHomePage" />
          <add Name="umbNewsItem" />
          <add Name="umbTextPage" />
        </IncludeNodeTypes>
      </IndexSet>
    

    I must admin that I didn't have worked on the same.

    But may be you can add your document type and property in above section.

    It might help.

    Regards,

    Urvish Mandaliya

  • TikTakToe 60 posts 102 karma points
    Jun 08, 2015 @ 11:50
    TikTakToe
    0

    hi gufran

    can you define what you mean by page description? have you created a doctype property called 'PageDescription'? It's a bit unclear, so if you provide more detail we might be able to help

  • Ghufran Ahmad 17 posts 73 karma points
    Jun 08, 2015 @ 12:29
    Ghufran Ahmad
    0

    Page Description means any page content it may be page title or page description or keyword etc

  • TikTakToe 60 posts 102 karma points
    Jun 08, 2015 @ 12:44
    TikTakToe
    0

    hi

    ok, then you can do what Urvish said above, in your index settings, add in the custom properties you have defined on your doctype (eg. bodyText, description, excerpt etc) and add them into the

      ...
        <IndexUserFields>
          <add Name="bodyText"/>
          <add Name="description"/>
          <add Name="excerpt"/>
        </IndexUserFields>
      ...
    

    Again, read the links Urvish added to find out more - you can also download Luke to play around with search queries etc to check your index is working correctly

    cheers

    Ian

Please Sign in or register to post replies

Write your reply to:

Draft