Objetivo: Mostrar el procedimiento para mostrar resultados basados en Site Columns de SharePoint.
Procedimiento:
Creación de un sitio de búsqueda
Â
- Nos ubicamos en el home principal del portal, hacemos clic en Acciones del Sitio y elegimos la opción Crear Sitio
- Se carga la página Web con las opciones de creación de un nuevo Site, agregamos el nombre del Site y una descripción del mismo.
- Nos ubicamos en el Tab Empresa (Enterprise en Ingles) y elegimos la opción Centro de Búsqueda con fichas (Search Center with Tabs en Inglés)
y hacemos clic en Crear.
Configuración para mapear propiedades de metadata.
Â
- Ingresar al SharePoint 3.0 Central Administration
- Ingresar al SharePoint 3.0 Central Administration e ingresar al Shared Services
- Ingresar a Search Settings
y seleccionar la opción Metadata property mappings. - Para agregar un nueva propiedad de metadata hacer click en New Managed Property
- Agregar el nombre de la propiedad y el tipo de información al cual pertenece la propiedad.
- Hacer clic en Add Mapping para mapear metadata de sharepoint dentro del Managed Property.
- Seleccione la categorÃa de datos a mapear. En nuestro caso es SharePoint y seleccione la propiedad que se mapeara. Para facilitar la búsqueda tiene la opción de Find y hacer una búsqueda rápida de la columna. Finalmente hacer clic en OK.
- Luego de aceptar los datos a agregar se visualiza las columnas que mapearemos para hacer la búsquedas por Search
Rastreo
Â
Hacer crawling del content source Local Office SharePoint Server sites, para mapear todo el contenido de metadata. Esto tomara le tomará unos minutos. Y mapeara la información contenida de la columna que usted definió para hacer búsquedas.
Â
Configurar Búsqueda Avanzada
Â
- Ingrese a búsqueda avanzada y ingrese por opción de edición al webpart de Búsqueda Avanzada.
- En la sección del panel de la derecha de la configuración del webpart ingresar a la sección de propiedades y en el Textbox de Propiedades seleccionar el botón contextual que aparece en la sección derecho (solamente cuando ingresamos al textbox)
- Cuando se abre la ventana emergente de entrada de texto realizar las modificaciones. Se recomienda guardar una copia de la estructura mostrada.
- Se deben realizar los cambios correspondientes a nuestros requerimientos, luego aceptar los cambios y republicar la pagina editada.
Estructura del WebPart de Busqueda Avanzada
Â
En la sección inferior se muestra la estructura del webpart de búsqueda avanzada, se recomienda en este caso eliminar el contenido que no sirva de apoyo para el trabajo a realizar en la búsqueda de metadata, y cambiar por aquellos valores que sirvan para buscar el tipo de contenido que necesitamos en nuestro requerimiento.
<root xmlns:xsi=»http://www.w3.org/2001/XMLSchema-instance»>
<LangDefs>
<LangDef DisplayName=»Chino» LangID=»4″/>
<LangDef DisplayName=»Francés» LangID=»12″/>
<LangDef DisplayName=»Alemán» LangID=»7″/>
<LangDef DisplayName=»Italiano» LangID=»16″/>
<LangDef DisplayName=»Japonés» LangID=»17″/>
<LangDef DisplayName=»Portugués» LangID=»22″/>
<LangDef DisplayName=»Español» LangID=»10″/>
</LangDefs>
<Languages>
<Language LangRef=»10″/>
<Language LangRef=»7″/>
<Language LangRef=»12″/>
</Languages>
<PropertyDefs>
<PropertyDef Name=»Area» DataType=»text» DisplayName=»Area»/>   Â
<PropertyDef Name=»Path» DataType=»text» DisplayName=»dirección URL»/>
<PropertyDef Name=»Size» DataType=»integer» DisplayName=»Tamaño»/>
<PropertyDef Name=»Write» DataType=»datetime» DisplayName=»Fecha de la última modificación»/>
<PropertyDef Name=»FileName» DataType=»text» DisplayName=»nombre»/>
<PropertyDef Name=»Description» DataType=»text» DisplayName=»descripción»/> <PropertyDef Name=»Title» DataType=»text» DisplayName=»TÃtulo»/>
<PropertyDef Name=»Author» DataType=»text» DisplayName=»autor»/>
<PropertyDef Name=»DocSubject» DataType=»text» DisplayName=»tema»/>
<PropertyDef Name=»DocKeywords» DataType=»text» DisplayName=»palabras clave»/> <PropertyDef Name=»DocComments» DataType=»text» DisplayName=»comentarios»/> <PropertyDef Name=»Manager» DataType=»text» DisplayName=»jefe»/>
<PropertyDef Name=»Company» DataType=»text» DisplayName=»compañÃa»/>
<PropertyDef Name=»Created» DataType=»datetime» DisplayName=»fecha de creación»/> <PropertyDef Name=»CreatedBy» DataType=»text» DisplayName=»creado por»/>
<PropertyDef Name=»ModifiedBy» DataType=»text» DisplayName=»modificado por última vez por»/>
</PropertyDefs>
<ResultTypes>
<ResultType DisplayName=»Todos los resultados» Name=»default»>
<Query/>
<PropertyRef Name=»Area» />
<PropertyRef Name=»Author» />
<PropertyRef Name=»Description» />
<PropertyRef Name=»FileName» />
<PropertyRef Name=»Size» />
<PropertyRef Name=»Path» />
<PropertyRef Name=»Created» />
<PropertyRef Name=»Write» />
<PropertyRef Name=»CreatedBy» />
<PropertyRef Name=»ModifiedBy» />
</ResultType>
<ResultType DisplayName=»Documentos» Name=»documents»>
<Query>IsDocument=1</Query>
<PropertyRef Name=»Author» />
<PropertyRef Name=»DocComments»/>
<PropertyRef Name=»Description» />
<PropertyRef Name=»DocKeywords»/>
<PropertyRef Name=»FileName» />
<PropertyRef Name=»Size» />
<PropertyRef Name=»DocSubject»/>
<PropertyRef Name=»Path» />
<PropertyRef Name=»Created» />
<PropertyRef Name=»Write» />
<PropertyRef Name=»CreatedBy» />
<PropertyRef Name=»ModifiedBy» />
<PropertyRef Name=»Title»/>
<PropertyRef Name=»Manager» />
<PropertyRef Name=»Company»/>
</ResultType>
<ResultType DisplayName=»Documentos de Word» Name=»worddocuments»>
<Query>FileExtension=’doc’ Or FileExtension=’docx’ Or FileExtension=’dot'</Query> <PropertyRef Name=»Author» />
<PropertyRef Name=»DocComments»/>
<PropertyRef Name=»Description» />
<PropertyRef Name=»DocKeywords»/>
<PropertyRef Name=»FileName» />
<PropertyRef Name=»Size» />
<PropertyRef Name=»DocSubject»/>
<PropertyRef Name=»Path» />
<PropertyRef Name=»Created» />
<PropertyRef Name=»Write» />
<PropertyRef Name=»CreatedBy» />
<PropertyRef Name=»ModifiedBy» />
<PropertyRef Name=»Title»/>
<PropertyRef Name=»Manager» />
<PropertyRef Name=»Company»/>
</ResultType>
<ResultType DisplayName=»Documentos de Excel» Name=»exceldocuments»>
<Query>FileExtension=’xls’ Or FileExtension=’xlsx’ Or FileExtension=’xlt'</Query>
<PropertyRef Name=»Author» />
<PropertyRef Name=»DocComments»/>
<PropertyRef Name=»Description» />
<PropertyRef Name=»DocKeywords»/>
<PropertyRef Name=»FileName» />
<PropertyRef Name=»Size» />
<PropertyRef Name=»DocSubject»/>
<PropertyRef Name=»Path» />
<PropertyRef Name=»Created» />
<PropertyRef Name=»Write» />
<PropertyRef Name=»CreatedBy» />
<PropertyRef Name=»ModifiedBy» />
<PropertyRef Name=»Title»/>
<PropertyRef Name=»Manager» />
<PropertyRef Name=»Company»/>
</ResultType>
<ResultType DisplayName=»Presentaciones» Name=»presentations»>
<Query>FileExtension=’ppt'</Query>
<PropertyRef Name=»Author» />
<PropertyRef Name=»DocComments»/>
<PropertyRef Name=»Description» />
<PropertyRef Name=»DocKeywords»/>
<PropertyRef Name=»FileName» />
<PropertyRef Name=»Size» />
<PropertyRef Name=»DocSubject»/>
<PropertyRef Name=»Path» />
<PropertyRef Name=»Created» />
<PropertyRef Name=»Write» />
<PropertyRef Name=»CreatedBy» />
<PropertyRef Name=»ModifiedBy» />
<PropertyRef Name=»Title»/>
<PropertyRef Name=»Manager» />
<PropertyRef Name=»Company»/>
</ResultType>
</ResultTypes>
</root>
Â
Â
Simplificando este ejemplo por defecto, podrÃamos utilizar el siguiente como parte de la estructura para búsqueda por metadata.
Â
<root xmlns:xsi=»http://www.w3.org/2001/XMLSchema-instance»>
<LangDefs>
<LangDef DisplayName=»Chino» LangID=»4″/>
<LangDef DisplayName=»Francés» LangID=»12″/>
<LangDef DisplayName=»Alemán» LangID=»7″/>
<LangDef DisplayName=»Italiano» LangID=»16″/>
<LangDef DisplayName=»Japonés» LangID=»17″/>
<LangDef DisplayName=»Portugués» LangID=»22″/>
<LangDef DisplayName=»Español» LangID=»10″/>
</LangDefs>
<Languages>
<Language LangRef=»10″/>
<Language LangRef=»7″/>
<Language LangRef=»12″/>
</Languages>
<PropertyDefs>
<PropertyDef Name=»Area» DataType=»text» DisplayName=»Area»/>
<PropertyDef Name=»Unidad» DataType=»text» DisplayName=»Unidad»/>
</PropertyDefs>
<ResultTypes>
<ResultType DisplayName=»Todos los resultados» Name=»default»>
<Query/>
<PropertyRef Name=»Area» />
<PropertyRef Name=»Unidad» />
</ResultType>
<ResultType DisplayName=»Documentos» Name=»documents»>
<Query>IsDocument=1</Query>
<PropertyRef Name=»Area» />
<PropertyRef Name=»Unidad» />
</ResultType>
<ResultType DisplayName=»Documentos de Word» Name=»worddocuments»>
<Query>FileExtension=’doc’ Or FileExtension=’docx’ Or FileExtension=’dot'</Query>
<PropertyRef Name=»Area» />
<PropertyRef Name=»Unidad» />
</ResultType>
</ResultTypes>
</root>
Â
Â
Espero que este post les sirva de apoyo.
Saludos desde Perú,
Â
ArthasNet