5 Replies Latest reply on Aug 3, 2010 2:49 AM by simon.g

    Searching Content in File System Connector

    simon.g

      I was trying out the File System Connector, in particular the full text search capability. With a structure like

      • workspace1
        • dir1
          • test1.txt
            • foo
        • dir2
          • test2.txt
            • bar

       

      and a query like this:

      SELECT * FROM [mode:resource] WHERE CONTAINS(*, 'bar')

       

      I get the following nodes:

      /dir1/test1.txt/jcr:content

      /dir2/test2.txt/jcr:content

      .. but was expecting only the node at /dir2/test2.txt/jcr:content.

       

      Also, I was trying to get the search result score from the row object, and got a javax.jcr.UnsupportedRepositoryOperationException.

       

      Is this the correct behaviour?

       

      Best regards,

      Simon

       

      PS: Looking forward to the 2.1 release.