Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • TKH 13 posts 32 karma points
    Dec 31, 2010 @ 05:30
    TKH
    0

    Examine XLST extensions and searching PDFs

    Hi,

    Experimenting with Shannon's demo using the Examine XSLT search extension. Tried to see if the pdf index set (which seems to have been generated OK) can be searched using the following:

    <xsl:variable name="results" select="examine:Search('test','false','PDFSearcher')"/>

    However, getting the following error:

    System.OverflowException: Value was either too large or too small for an Int32.
    at System.Convert.ToInt32(Double value)
    at System.Double.System.IConvertible.ToInt32(IFormatProvider provider)
    at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
    at System.Xml.Xsl.Runtime.XmlQueryRuntime.ChangeTypeXsltArgument(XmlQueryType xmlType, Object value, Type destinationType)
    at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
    at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
    at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
    at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
    at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

    Any insights would be most welcome!

    TKH

     

     

     

     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Dec 31, 2010 @ 09:29
    Ismail Mayat
    0

    At a guess its finding the pdf then doing a new Node(pdfid) which is obviously a media file and trying to get some properties on it and that is causing the exception?  You will need to debug it to see exactly whats going.

    Regards

    Ismail

  • TKH 13 posts 32 karma points
    Jan 05, 2011 @ 05:02
    TKH
    0

    Ismail,

    Thanks for the reply.  Will look into this a bit further, but may just end up going with a user control instead.

    TKH

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft