<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Arial">Sorry, I think that I have to make my question
more understandable... </font></p>
<p><font face="Arial">We have configured our search this way :</font></p>
<p><font face="Arial"> </font></p>
<blockquote>
<p><font face="Arial">$c->{search}->{simple} = {<br>
search_fields => [<br>
{<br>
id => "q",<br>
meta_fields => [<br>
"documents",<br>
"eprintid",<br>
"title",<br>
"creators_name",<br>
"abstract",<br>
"datestamp",<br>
…</font></p>
</blockquote>
<p><font face="Arial"> </font></p>
<p><font face="Arial">So all these fields should be indexed by
Xapian<br>
</font> </p>
<p><font face="Arial"> </font></p>
<p><font face="Arial">We have reloaded the config (epadmin),
restarted Apache and reindexed our eprints.<br>
</font> </p>
<p><font face="Arial"> </font></p>
<p><font face="Arial">But now we get two problems : <br>
</font> </p>
<p><font face="Arial"> </font></p>
<p><font face="Arial"> 1. We can't search by datestamp.<br>
</font> </p>
<p><font face="Arial"> </font></p>
<p><font face="Arial"> We tried
"datestamp:2015-08-*", "datestamp:2015/08/*",
"datestamp:201508*", ...<br>
Nothing seems to work. We always get
empty results.<br>
</font> </p>
<p><font face="Arial"> </font></p>
<p><font face="Arial"> Do you know what is
the right syntax to do a Xapian search based in this field ?<br>
</font> </p>
<p><font face="Arial"> </font></p>
<p><font face="Arial"> 2. We can't search by
creators_name<br>
</font> </p>
<p><font face="Arial"> </font></p>
<p><font face="Arial"> We can search by last
name : creators_name:"Noyer"<br>
Or by first name :
creators_name:"Jean-Louis"<br>
</font> </p>
<p><font face="Arial"> </font></p>
<p><font face="Arial"> But we can't combine
firsrt and last name :<br>
creators_name:"Noyer Jean-Louis" or
creators_name:"Noyer, Jean-Louis"<br>
both give and empty result set.<br>
</font> </p>
<p><font face="Arial"> Do you know how to do
such a search using both first and last name ? </font></p>
<p wrap=""><font face="Arial"><br>
Thank you for your help</font></p>
<br>
<br>
<div class="moz-cite-prefix">Le 01/09/2015 15:25, Field A.N. a
écrit :<br>
</div>
<blockquote
cite="mid:EMEW3|71160e1b8a89ea0b6604104a15684b54r80EQG14eprints-tech-bounces|ecs.soton.ac.uk|116FB255-965C-42B7-B978-56F8F520420A@ecs.soton.ac.uk"
type="cite">
<pre wrap="">Have you restarted the webserver? Changes to the .pl files do not load automatically when the file changes. You'll need to reload the configuration (/<eprints_root>/bin/epadmin reload [repositoryid]) or restart apache before the changes will be visible at the front end.
--
Adam Field
Business Relationship Manager and Community Lead
EPrints Services
+44 (0)23 8059 8814
On 27 Aug 2015, at 17:17, Lessard Josée wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I have two questions on research Xapian :
1. How query the fields : datestamp ?
2. How query the fields : creators_name (name_family with name_given ) ?
We added fields (datestamp and creators_name) in the file cfg.d/eprints_search_simple.pl and reindexed the database.
$c->{search}->{simple} =
{
search_fields => [
{
id => "q",
meta_fields => [
"documents",
"eprintid",
"title",
"creators_name",
"abstract",
"datestamp",
…
Thank you for your help
Josée Lessard
*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
</blockquote>
<pre wrap="">
*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
</blockquote>
<br>
</body>
</html>