I am working with ektron 9.
I have created a smart from,and implemented the search for smart form fields using search api. For that am using Ektron.Cms.Framework.Search.SearchManager class.It works fine when for single Xpath values.
When my smart form has multiple fields with same Xpath,the search api is returning the results of first occurrence only.
In the below example ,when i search for Book->Title using Xpath "/root/Books/Book/Title" search always return "Hai" in result.
<root>
<Books>
<Book>
<Id>1
</Id>
<Title>Hai
</Title>
<Book>
<Book>
<Id>2
</Id>
<Title>Hello
</Title>
<Book>
</Books>
</root>
How can i get "Hello" also in the result? is any separate api to handle this? Or is it possible to handle this scenario in a separate way,like by specifying like this "/root/Books/Book[id=1]/Title" ?
For more details on search please look: http://documentation.ektron.com/cms400/v85/webhelp/Navigating/Search85/APISearch.htm#Major
You haven't provided the code you are using so it is difficult to see where you are going wrong.
However, here is some code that will allow you to search against a SmartForm field in Ektron using Solr (or Microsoft Search Server).
This searches against a specific SmartForm in a field called "Path" - which is accessed using the XPath "/root/Path".
The above example asks Search (Solr or Search Server) to return three properties: Id, Title and QuickLink.
You are likely to need to add "using" statements for Ektron.Cms.Search and Ektron.Cms.Framework.Search if you have not already.
Your best reference guide for the Ektron API is this site.