Git Product home page Git Product logo

Comments (5)

rjmartell avatar rjmartell commented on August 18, 2024

The AnyText "pseudo-property" is beyond the scope of tests for the Basic and OpenSearch conformance classes currently under development. However, it may be that the same constraints should apply to basic KVP text searches using the 'q' query parameter (Table 6: KVP encoding for query constraints).

Requirement-030 stipulates that the domain of AnyText is "all text fields in the catalogue record". Now, OGC 10-032r8 (OGC OpenSearch Geo and Time Extensions) suggests (see Table 4) that searchTerms be matched against the content of the following record elements:

  • dc:title, atom:title
  • dc:description (dct:abstract), atom:summary
  • dc:subject, atom:category

Since this is a normative reference, should this restriction apply to all basic text searches even though the CSW3 spec imposes fewer restrictions on the scope of AnyText for "advanced" queries (i.e. Filter-FES-KVP-Advanced)?

from ets-cat30.

rjmartell avatar rjmartell commented on August 18, 2024

None of the relevant specs appear to have anything to say about:

  1. Case sensitivity of matching;
  2. Handling of multiple terms (e.g. treat them as a phrase or as separate terms with some implied boolean operator).

I suggest doing the the following for basic text searches:

  1. Matching is case-insensitive.
  2. Treat multiple terms as a phrase (e.g. "San Francisco")

from ets-cat30.

rjmartell avatar rjmartell commented on August 18, 2024

Then again, consider how search terms are interpreted by the Google search engine. Multiple terms are combined by an implicit AND operator. And Google searches are not case-sensitive.

Perhaps this would be sensible default behavior in keeping with the POLA.

from ets-cat30.

rjmartell avatar rjmartell commented on August 18, 2024

Basic text search using the q parameter is expected to be processed as follows:

  • match against all record fields with simple content
  • matching is case-insensitive
  • multiple terms are combined by an implicit AND

Perhaps "advanced" text search using csw:AnyText will enable more complex queries.

from ets-cat30.

mhogeweg avatar mhogeweg commented on August 18, 2024

The update to the spec is good (it makes it more explicit). The test needs to be updated as well, since what is returned in the response (brief, summary, …) may not include all of the record fields with simple content. The test can therefore not fail a response if that response did not include one of the terms provided in the request.

from ets-cat30.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.