দ্রুত টিপ: ব্যবহার “IsDocument:1” অনুসন্ধান ফলাফল ছাঁটা

আপডেট করুন 11/03/08: সহযোগী MVP-মাইক ওয়ালশ সঠিকভাবে এই একটি WSS যে খুঁজে স্থানটিকে 3.0 / MOSS feature. It does not work in WSS 2.0 বা আগে.

Updatte 11/03/08: (এক দিনের দ্বিতীয় হালনাগাদ!): Be sure to read the excellent comment from "nowise" আরও তথ্য এবং আরেকটি ভাল xref লিঙ্কের জন্য.

Two questions came up in rapid succession this week on the MSDN forums asking a variation of this:

"When I search a keyword, folders from my document library with that keyword in their path will come out first in my search results. I don’t want that to happen. Files with that keyword are more important to me. I don’t want to see folders at all."

This is actually quite easy to do out of the box. Simply add a "IsDocument:1" to the search query and SharePoint search (both WSS and MOSS) will restrict itself to showing actual documents.

</শেষ>

আমার ব্লগ এর জন্য সাবস্ক্রাইব করুন.

টুইটারে আমার অনুসরণ http://www.twitter.com/pagalvin

Technorati বিভাগ:

4 চিন্তা "দ্রুত টিপ: ব্যবহার “IsDocument:1” অনুসন্ধান ফলাফল ছাঁটা

  1. পল Galvin

    Sandeep, You probably figured this out weeks ago, here goes anyway…

    You don’t need to do anything special to enable security trimming. WSS 3.0 এবং MOSS (any flavor) has security trimming built in and in fact, it cannot be turned off.

    As for the scope question, I don’t know. What you did sounds right ot me.

  2. Sandeep Abhyankar

    উচ্চ পল. i was looking for this for a long time. আমি একটা প্রশ্ন আছে. I am the admin for sharepoint site. Where do i add IsDocument:1 in sharepoint search? how do i get there? Also how do i change the query?
    iIenabled IsDocument to ‘Allow this property to be used in scopes’ from Shared Services Administration: SharedServices3 > Search Settings > Managed Properties and in Scopes, i added the rule IsDocument=1 for Property query.
    When i run the crawler, the ‘Item count’ for this rule in the scope says ‘error’. Where am i going wrong?

  3. nowisee লিখেছেন:

    You can also add contentclass to the search query. If you want to only search documents in document library’s you add "IsDocument:1 Contentclass:STS_ListItem_DocumentLibrary" to the search query. This can be used to avoid getting hits on aspx pages and other non document library items.

    For a complete list of ContentClasses check Mark Anderson’s Blog

সাইফুল আলম চৌধুরী

আপনার ইমেইল ঠিকানা প্রচার করা হবে না. প্রয়োজনীয় ক্ষেত্রগুলি চিহ্নিত করা আছে *