Hi List,
I'm slightly confused about the way that the advanced search is configured
in Geonetwork 2.10.4.
I have a number of records with the phrase "Approval for Access" in. If I
use the standard search, and put in that exact phrase, then I get results
returned. If I use the advanced search, and in the 'Any- with this exact
phrase' box I put in that exact phrase, then no searches are returned.
Other phrases which are not case-sensitive work OK.
When I look at the logging as this searching is taking place, for the basic
search I see this:
2015-02-08 15:41:08,159 DEBUG [geonetwork.search] - Lucene query: +(_op0:3
_op2:3 _op0:2 _op2:2 _op0:10 _op2:10 _op0:1 _op2:1 _op0:0 _op2:0 _op0:7
_op2:7 _op0:-1 _op2:-1 _op0:6 _op2:6 _op0:5 _op2:5 _op0:4 _op2:4 _op0:9
_op2:9 _op0:8 _op2:8 _op0:11 _op2:11 _op0:12 _op2:12 _owner:1 _dummy:0)
+(+any:approval +any:access) +_isTemplate:n _locale:eng
For the advanced search, exact phrase I see this:
2015-02-08 15:41:50,563 DEBUG [geonetwork.search] - Lucene query: +(_op0:3
_op2:3 _op0:2 _op2:2 _op0:10 _op2:10 _op0:1 _op2:1 _op0:0 _op2:0 _op0:7
_op2:7 _op0:-1 _op2:-1 _op0:6 _op2:6 _op0:5 _op2:5 _op0:4 _op2:4 _op0:9
_op2:9 _op0:8 _op2:8 _op0:11 _op2:11 _op0:12 _op2:12 _owner:1 _dummy:0)
+_isTemplate:n +any:"approval for access" _locale:eng
So it seems to me that the search procedure is lower-casing the search
phrase, and then not finding that in the record because the record has the
upper case terms.
Is this a bug, or something that can be configured in some lucene settings,
or am I misunderstanding how to use the exact phrase search option?
Thanks
Jo
--
*Jo Cook*
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 7930 524 155
iShare - Data integration and publishing platform
<http://www.isharemaps.com/>
*****************************************
Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.