• REST service viewItemFileService (FileStore) - unable to search

    By Fero Kossuth 1 decade ago

    Service does not implement "query" in its communication protocol: http://dojotoolkit.org/reference-guide/dojox/data/FileStore/protocol.html

    That means I am not able to use this service for FilteredSelect control - typing inside always returns current page instead of filtered values.

     

    Please, implement querying into service as an parameter that can be handled by developer either by Keys or Search attribute.

    • Will search work for you?

      By Stephen Auriemma 1 decade ago

      The data is mapped to a Domino/Notes view not actual files. Can you provide more information about the type of query you would like to support? Search is implement but, not query. Is it possible you can use search instead of query?

      • search is OK

        By Fero Kossuth 1 decade ago

        If I will have chance to alter the actual search string (full text query) to ensure partial matches (typing "el" in element using the store for typeahead should find Eliah, Fidel and Belle as well). Or to find the value inside specific field.

        For some scenarios "Keys" property of datasource would be better (working as GetAllDocumentsByKey with exact match turned off)

      • how to search?

        By Fero Kossuth 1 decade ago

        Could you, please, share some snippets how to search values with this service? How exactly is searching implemented?

        • Search is implemented using FTSearch method in View class.

          By Stephen Auriemma 1 decade ago

          Here is a link on how to refine a search query using operators:

          http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.notes85.help.doc/sch_refine_query_r.html

          The following search will find three documents:

          http:///XPagesExtOld.nsf/api/data/collections/name/AllContacts?search=[City] CONTAINS St.

          [
            {
                "@href":"http:\/\/:80\/XPagesExtOld.nsf\/api\/data\/collections\/name\/AllContacts\/unid\/53901A7482BA11EB852578110047D09B",
                "@link":
                {
                    "rel":"document",
                    "href":"http:\/\/:80\/XPagesExtOld.nsf\/api\/data\/documents\/unid\/53901A7482BA11EB852578110047D09B"
                },
                "@entryid":"159-53901A7482BA11EB852578110047D09B",
                "@unid":"53901A7482BA11EB852578110047D09B",
                "@noteid":"2BD2",
                "@position":"159",
                "@siblings":206,
                "@form":"Contact",
                "FirstName":"Shana",
                "LastName":"Stewart",
                "EMail":"sstewart@renovations.com",
                "City":"St. Paul",
                "created":"2011-01-07T13:04:24Z",
                "$10":"Shana Stewart"
            },
            {
                "@href":"http:\/\/:80\/XPagesExtOld.nsf\/api\/data\/collections\/name\/AllContacts\/unid\/E0CE30D86E600F4F852578110047D01D",
                "@link":
                {
                    "rel":"document",
                    "href":"http:\/\/:80\/XPagesExtOld.nsf\/api\/data\/documents\/unid\/E0CE30D86E600F4F852578110047D01D"
                },
                "@entryid":"33-E0CE30D86E600F4F852578110047D01D",
                "@unid":"E0CE30D86E600F4F852578110047D01D",
                "@noteid":"29DA",
                "@position":"33",
                "@siblings":206,
                "@form":"Contact",
                "FirstName":"Verna",
                "LastName":"Cooke",
                "EMail":"vcooke@renovations.com",
                "City":"St. Petersburg",
                "created":"2011-01-07T13:04:23Z",
                "$10":"Verna Cooke"
            },
            {
                "@href":"http:\/\/:80\/XPagesExtOld.nsf\/api\/data\/collections\/name\/AllContacts\/unid\/87E50D5674F465E5852578110047D05C",
                "@link":
                {
                    "rel":"document",
                    "href":"http:\/\/:80\/XPagesExtOld.nsf\/api\/data\/documents\/unid\/87E50D5674F465E5852578110047D05C"
                },
                "@entryid":"96-87E50D5674F465E5852578110047D05C",
                "@unid":"87E50D5674F465E5852578110047D05C",
                "@noteid":"2AD6",
                "@position":"96",
                "@siblings":206,
                "@form":"Contact",
                "FirstName":"Eugene",
                "LastName":"Scott",
                "EMail":"escott@renovations.com",
                "City":"St. Petersburg",
                "created":"2011-01-07T13:04:23Z",
                "$10":"Eugene Scott"
            }
          ]

          • oh,we are stil on 8.5.2...

            By Fero Kossuth 1 decade ago