Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I don't have any Site Columns, any Catalog Site Collection or Catalog list. I have about 30 Terms and TermSets (in MMS). Now I want to use them as a search based menu. By using Powershell I have created Managed Properties, Crawled Properties and mapped them to each other. I have enabled the Terms and TermSets for Faceted Navigation and added the newly created Managed Properties to the Terms as Refiners. run Full Crawl. Now I want to retrieve Terms based on their Refiners by using Search Rest API. is it possible? because when I run following queries get no rows.

 http://mydomain/_api/search/query?querytext='ManagedPropertyName:TermName'
 http://mydomain/_api/search/query?querytext='termName'&refiners='ManagedPropertyName'

I tested several other options but no results. Is it possible to get Terms based on their refiners withou having Correspoinding Site Columns, Catalog Site Collection or Catalog list? Thank you.

share|improve this question
add comment

3 Answers 3

I think you can make a call like this to get the values for owstaxidmetadataalltagsinfo refiner:

http:// siteurl /_api/search/query?querytext='*'&refiners='owstaxidmetadataalltagsinfo'

You will get some values with this format:

L0|#036f7c08a-0176-47e9-9d70-070291ce0e32|Data Warehousing

share|improve this answer
    
I will test it and come back to mark your answer as "accepted answer" –  Medes May 2 '13 at 9:34
    
was this useful ? –  Bogdan M. May 16 '13 at 10:16
    
no it wasn't, sorry, –  Medes May 16 '13 at 11:53
add comment

Based on my knowledge you could do that in someway. I found a post of Mastykarz where I explain how get the list of terms by js. Using this you should be able to do a search query: http://blog.mastykarz.nl/building-global-navigation-sharepoint-2013/

Another good point of view is this tool: http://sp2013searchtool.codeplex.com/

it could help you to understand how to do a rest call based on a term search context.

share|improve this answer
    
I have already read these posts. what I want to do is getting terms based on their refiners by using REST API. I can get all Terms and filter the result on client side but I want to do the filtering on server side by using REST API. I have used the tool but my queries return no results. –  Medes Apr 29 '13 at 9:34
    
In this case I think you have to dev your own web services. –  Salvatore Di Fazio Apr 29 '13 at 9:42
add comment

This is the url, you already posted it.

http://server/_api/search/query?querytext='Query text'&refiners='property1,property2,etc'

If this doesn't work then your managed property is either not crawled, you have no access with that user, you have the refiner name wrong or simply there are no results.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.