[GeoNetwork-users] Search problem when having "-" character in query

Hi list, I noticed one problem when having “-” character in query

Searching for Eure loir get 70 results
http://sandre.eaufrance.fr/geonetwork/srv/fr/main.search?extended=off&remote=off&attrset=geo&any=Eure+loir&hitsPerPage=10

Searching for Eure-et-Loir get 0 results
http://sandre.eaufrance.fr/geonetwork/srv/fr/main.search?extended=off&remote=off&attrset=geo&any=Eure-et-Loir&hitsPerPage=10

Searching for “Eure-et-Loir” get 0 results

http://sandre.eaufrance.fr/geonetwork/srv/fr/main.search?extended=off&remote=off&attrset=geo&any=%22Eure-et-Loir%22&hitsPerPage=10

Any ideas one what’s wrong ?

Thanks for your help. Francois


Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n’a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et privés.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.
Any data and information contained in this electronic mail is personal, confidential and private. Any total or partial publication, use or distribution must be authorized.

Ciao Francois,
I think that the string containing "-" is split into works by Lucene when the metadata is indexed, but not when it is used as a search term.
I have to check and see how to solve this.

        Roberto

On 31 Jan 2006, at 15:16, François Prunayre wrote:

Hi list, I noticed one problem when having "-" character in query

Searching for Eure loir get 70 results
http://sandre.eaufrance.fr/geonetwork/srv/fr/main.search?extended=off&remote=off&attrset=geo&any=Eure+loir&hitsPerPage=10

Searching for Eure-et-Loir get 0 results
http://sandre.eaufrance.fr/geonetwork/srv/fr/main.search?extended=off&remote=off&attrset=geo&any=Eure-et-Loir&hitsPerPage=10

Searching for "Eure-et-Loir" get 0 results
http://sandre.eaufrance.fr/geonetwork/srv/fr/main.search?extended=off&remote=off&attrset=geo&any="Eure-et-Loir"&hitsPerPage=10

Any ideas one what's wrong ?

Thanks for your help. Francois

--
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et privés.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal, confidential and private. Any total or partial publication, use or distribution must be authorized.

I filed a bug report for this.
Jeroen

On 1 Feb 2006, at 12:41, Roberto Giaccio wrote:

Ciao Francois,
I think that the string containing "-" is split into works by Lucene when the metadata is indexed, but not when it is used as a search term.
I have to check and see how to solve this.

                Roberto

On 31 Jan 2006, at 15:16, François Prunayre wrote:

Hi list, I noticed one problem when having "-" character in query

Searching for Eure loir get 70 results
http://sandre.eaufrance.fr/geonetwork/srv/fr/main.search?extended=off&remote=off&attrset=geo&any=Eure+loir&hitsPerPage=10

Searching for Eure-et-Loir get 0 results
http://sandre.eaufrance.fr/geonetwork/srv/fr/main.search?extended=off&remote=off&attrset=geo&any=Eure-et-Loir&hitsPerPage=10

Searching for "Eure-et-Loir" get 0 results
http://sandre.eaufrance.fr/geonetwork/srv/fr/main.search?extended=off&remote=off&attrset=geo&any="Eure-et-Loir"&hitsPerPage=10

Any ideas one what's wrong ?

Thanks for your help. Francois

--
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et privés.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal, confidential and private. Any total or partial publication, use or distribution must be authorized.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net