Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 12366

SP2013 - Querying a document based on its DocID (aka Item ID)

$
0
0

Hi Search Enthusiasts !

For troubleshooting purpose, you might want to look at the MPs of a specific document or list item.

First you need to identify the DocId also called the Item ID in the Crawl Log  (CA UI).

 

Once you have the id you're looking for, you may use the Search Query Tool (http://sp2013searchtool.codeplex.com/).

You can also determine the DocId out of a specific query results too.

 

Even so the DocID MP is queryable,

ID                                          : DocId
PID                                         : 171
SystemDefined                               : True
Name                                        : DocId
SplitStringCharacters                       :
SplitStringOnSpace                          : False
Description                                 :
ManagedType                                 : Text
Searchable                                  : False
FullTextQueriable                           : False
Queryable                                   : True
Retrievable                                 : True
Refinable                                   : False
Sortable                                    : False
FullTextIndex                               :
Context                                     : 0
RefinerConfiguration                        :
SortableType                                : Enabled

It isn't operational for some reason but there is a way.

To retrieve a specific document, use the below query

indexdocid:<DocID>

indexdocid is an internal field the query component is leveraging.

 

Very simple trick but so useful to evaluate you MP mapping or troubleshooting differences between indexed documents.

To retrieve two documents

indexdocid:63 indexdocid:62

 

Et Voila !

Hope this could be of help. Stay Tuned.


Viewing all articles
Browse latest Browse all 12366

Trending Articles