Nalini,

For your first issue, you are better off getting your data in shape to really 
be string-comparable or int-comparable. This is how the indexes work, and 
trying to work around bad data in your application will only lead to excess 
complexity and trouble.

For your second question, if you want the snippets to contain the entire 
document, you can override this with options like this:

   <transform-results apply="raw"/>

Have a look at the info in the Search guide:
http://developer.marklogic.com/pubs/4.1/books/search-dev-guide.pdf

If you still have difficulties, please post a code sample for us to look at. 
Thanks!
-m

On Feb 14, 2010, at 10:42 PM, Nalini v wrote:

> Hello Friends,
>  
> I am learning library search api concepts. which is seems to be very 
> intrsting and easy to the learners.
> I have a constraint like fetch the records if key value is in between the 
> available recorde.
> simply i want to use a range constrint in my search query. But my node values 
> mixed with sting values and integer.
> If i declare my range index as string, search my not  give proper results.
> ex: string comparision for (1,11) is different from int comparison ( 1,11)
> 
>  in this case how i can geet my results.
> and also i want some explanation about search:search() i am getting the path 
> in search:response.
> by using Search:search() method, i want to get My doument data embeded in 
> <serach:result> node , like i am getting <search:snippet/> .
> search:snippet :  will returns the result XPth and matching node value.
> But, I want to get the document data in result set. 
> Can any one help me out.
>  
>  
>  
>  
> Thanks in advance.
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to