[GeoNetwork-users] Lucene geographic search not working with another regions table

Hi, I have a problem with geographic searches (GN 2.6.0.1)

I changed the regions and regionsdes tables to hold our geographic scope
(the municipalities of our Province), but now, the geographic search does
not work.

To give you an example:

I have only 1 metadata in a region (municipality), but when I search for the
metadata of that region (selecting that municipality from the list)
Geonetwork gives me 230 metadata records, that is, it gives me metadata
that, for sure, are not enclosed in the bounding box I asked for.

The strange thing is that metadata results are not from nearest
municipalities, but far away, at least covering the whole provincial
bounding box.

This is the log:

010-10-18 15:07:20,970 DEBUG [geonetwork.search] -

LuceneQueryBuilder: request is
<request>
  <relation>encloses</relation>
  <extended>off</extended>
  <remote>off</remote>
  <timeout>20</timeout>
  <hitsPerPage>10</hitsPerPage>
  <similarity>.8</similarity>
  <output>full</output>
  <sortBy>relevance</sortBy>
  <sortOrder />
  <intermap>on</intermap>
  <download>off</download>
  <attrset>geo</attrset>
  <paper>off</paper>
  <dynamic>off</dynamic>
  <southBL>41.5511</southBL>
  <eastBL>1.5258</eastBL>
  <westBL>1.3932</westBL>
  <region>8</region>
  <northBL>41.6393</northBL>
  <digital>off</digital>
  <template>n</template>
  <group>2</group>
  <group>1</group>
  <group>0</group>
  <group>-1</group>
  <owner>1</owner>
  <isAdmin>true</isAdmin>
</request>

LuceneQueryBuilder: query is
+(_op0:2 _op0:1 _op0:0 _op0:-1 _owner:1 _dummy:0) +_isTemplate:n
+eastBL:[360.5258 TO 540] +westBL:[180 TO 362.3932] +northBL:[400.6393 TO
450] +southBL:[270 TO 402.5511]

2010-10-18 15:07:20,970 DEBUG [geonetwork.search] - Sorting by : relevance
2010-10-18 15:07:20,970 DEBUG [geonetwork.search] - Sorting by :
[relevance,true]
2010-10-18 15:07:20,970 DEBUG [geonetwork.search] - Setting up the TFC with
numHits 1000
2010-10-18 15:07:20,985 DEBUG [geonetwork.search] - Building summary
2010-10-18 15:07:20,985 DEBUG [geonetwork.search] - Sorting 2 according to
frequency of keyword
2010-10-18 15:07:20,985 DEBUG [geonetwork.search] - Hits found : 230

How can I solve that?

Thanks a lot for your help,

Best regards,
Montse

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Lucene-geographic-search-not-working-with-another-regions-table-tp5647065p5647065.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Montse

I created a ticked in Geonetwork Trac:
http://trac.osgeo.org/geonetwork/ticket/357

I'll check next week to fix, so should be available for 2.6.1 version.

Regards,
Jose GarcĂ­a

On Mon, Oct 18, 2010 at 3:45 PM, mmarco <mmarcosabate@anonymised.com> wrote:

Hi, I have a problem with geographic searches (GN 2.6.0.1)

I changed the regions and regionsdes tables to hold our geographic scope
(the municipalities of our Province), but now, the geographic search does
not work.

To give you an example:

I have only 1 metadata in a region (municipality), but when I search for
the
metadata of that region (selecting that municipality from the list)
Geonetwork gives me 230 metadata records, that is, it gives me metadata
that, for sure, are not enclosed in the bounding box I asked for.

The strange thing is that metadata results are not from nearest
municipalities, but far away, at least covering the whole provincial
bounding box.

This is the log:

010-10-18 15:07:20,970 DEBUG [geonetwork.search] -

LuceneQueryBuilder: request is
<request>
<relation>encloses</relation>
<extended>off</extended>
<remote>off</remote>
<timeout>20</timeout>
<hitsPerPage>10</hitsPerPage>
<similarity>.8</similarity>
<output>full</output>
<sortBy>relevance</sortBy>
<sortOrder />
<intermap>on</intermap>
<download>off</download>
<attrset>geo</attrset>
<paper>off</paper>
<dynamic>off</dynamic>
<southBL>41.5511</southBL>
<eastBL>1.5258</eastBL>
<westBL>1.3932</westBL>
<region>8</region>
<northBL>41.6393</northBL>
<digital>off</digital>
<template>n</template>
<group>2</group>
<group>1</group>
<group>0</group>
<group>-1</group>
<owner>1</owner>
<isAdmin>true</isAdmin>
</request>

LuceneQueryBuilder: query is
+(_op0:2 _op0:1 _op0:0 _op0:-1 _owner:1 _dummy:0) +_isTemplate:n
+eastBL:[360.5258 TO 540] +westBL:[180 TO 362.3932] +northBL:[400.6393 TO
450] +southBL:[270 TO 402.5511]

2010-10-18 15:07:20,970 DEBUG [geonetwork.search] - Sorting by : relevance
2010-10-18 15:07:20,970 DEBUG [geonetwork.search] - Sorting by :
[relevance,true]
2010-10-18 15:07:20,970 DEBUG [geonetwork.search] - Setting up the TFC with
numHits 1000
2010-10-18 15:07:20,985 DEBUG [geonetwork.search] - Building summary
2010-10-18 15:07:20,985 DEBUG [geonetwork.search] - Sorting 2 according to
frequency of keyword
2010-10-18 15:07:20,985 DEBUG [geonetwork.search] - Hits found : 230

How can I solve that?

Thanks a lot for your help,

Best regards,
Montse

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Lucene-geographic-search-not-working-with-another-regions-table-tp5647065p5647065.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Thanks a lot for your help, Jose. I'll wait for the solution.
Best regards,
Montse
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Lucene-geographic-search-not-working-with-another-regions-table-tp5647065p5650447.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.