You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by Alex O'Ree <sp...@gmail.com> on 2013/03/13 23:43:46 UTC

An observation when searching...

I just noticed that when running find_business with an
approximateMatch and a "%" as a search name, business with and without
a language value defined are returned.

Find_services with the same scenario only seems to return services
with a language defined. Services without a lang are omitted from the
search results.

The spec only talks about % applying to a few fields and lang isn't
one of them. Does anyone recall what the 'correct' behavior is?

Re: An observation when searching...

Posted by Kurt Stam <ku...@gmail.com>.
For business as well as service names the spec says:

  If a language markup is specified, the search results report a match only on those entries that match both the name value and language criteria. The match on language is a leftmost case-insensitive comparison of the characters supplied. This allows one to find all businesses whose name begins with an "A" and are expressed in any dialect of French, for example.  Values which can be passed in the language criteria adornment MUST obey the rules governing the xml:lang data type as defined in Section 3.3.2.3 name.

So Lang matching only comes into play when specified in the search. Only when a Lang is specified on the query a name without Lang setting should be omitted.

So I think we have a bug in find_services.

--Kurt

On Mar 13, 2013, at 6:43 PM, "Alex O'Ree" <sp...@gmail.com> wrote:

> I just noticed that when running find_business with an
> approximateMatch and a "%" as a search name, business with and without
> a language value defined are returned.
> 
> Find_services with the same scenario only seems to return services
> with a language defined. Services without a lang are omitted from the
> search results.
> 
> The spec only talks about % applying to a few fields and lang isn't
> one of them. Does anyone recall what the 'correct' behavior is?