<html><body bgcolor="#FFFFFF">
<p><font size="2" face="sans-serif">Hi Josée,</font><br>
<br>
<font size="2" face="sans-serif">for author searches, don't put the names into double quotes, but into brackets:</font><br>
<br>
<font size="2" face="sans-serif">creators_name:(Noyer, Jean-Louis</font><font size="2" face="sans-serif">) </font><br>
<br>
<font size="2" face="sans-serif">For datestamps, I'm not sure how they are indexed; in our case it just works with years:</font><br>
<br>
<font size="2" face="sans-serif">date:2014</font><br>
<br>
<font size="2" face="sans-serif">We have written a search help, </font><a href="http://www.zora.uzh.ch/help/"><font size="2" face="sans-serif">http://www.zora.uzh.ch/help/</font></a><font size="2" face="sans-serif"> that details some Xapian options. Feel free to use what is usable.</font><br>
<br>
<font size="2" face="sans-serif">Best regards,</font><br>
<br>
<font size="2" face="sans-serif">Martin</font><br>
<br>
<font size="2" face="sans-serif">--</font><br>
<font size="2" face="sans-serif">Dr. Martin Brändle</font><br>
<font size="2" face="sans-serif">Zentrale Informatik</font><br>
<font size="2" face="sans-serif">Universität Zürich</font><br>
<font size="2" face="sans-serif">Stampfenbachstr. 73</font><br>
<font size="2" face="sans-serif">CH-8006 Zürich</font><br>
<br>
<img width="16" height="16" src="cid:1__=4EBBF426DFAF37B08f9e8a93df9@lotus.uzh.ch" border="0" alt="Inactive hide details for Lessard Josée ---03/09/2015 11:54:22---Sorry, I think that I have to make my question more understand"><font size="2" color="#424282" face="sans-serif">Lessard Josée ---03/09/2015 11:54:22---Sorry, I think that I have to make my question more understandable... We have configured our search</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">Von:        </font><font size="1" face="sans-serif">Lessard Josée <josee.lessard@cirad.fr></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">An:        </font><font size="1" face="sans-serif">eprints-tech@ecs.soton.ac.uk</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Datum:        </font><font size="1" face="sans-serif">03/09/2015 11:54</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Betreff:        </font><font size="1" face="sans-serif">[EP-tech] Re: Xapian Search</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Gesendet von:        </font><font size="1" face="sans-serif">eprints-tech-bounces@ecs.soton.ac.uk</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="3" face="Arial">Sorry, I think that I have to make my question more understandable... </font>
<p><font size="3" face="Arial">We have configured our search this way :</font>
<ul style="padding-left: 36pt"><br>
<font size="3" 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></ul>
<br>
<font size="3" face="Arial">So all these fields should be indexed by Xapian</font>
<p><font size="3" face="Arial">We have reloaded the config (epadmin), restarted Apache and reindexed our eprints.</font>
<p><font size="3" face="Arial">But now we get two problems : </font>
<p><font size="3" face="Arial"> 1. We can't search by datestamp.</font>
<p><font size="3" face="Arial"> We tried "datestamp:2015-08-*", "datestamp:2015/08/*", "datestamp:201508*", ...<br>
Nothing seems to work. We always get empty results.</font>
<p><font size="3" face="Arial"> Do you know what is the right syntax to do a Xapian search based in this field ?</font>
<p><font size="3" face="Arial"> 2. We can't search by creators_name</font>
<p><font size="3" face="Arial"> We can search by last name : creators_name:"Noyer"<br>
Or by first name : creators_name:"Jean-Louis"</font>
<p><font size="3" 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.</font>
<p><font size="3" face="Arial"> Do you know how to do such a search using both first and last name ? </font>
<p><font size="3" face="Arial"><br>
Thank you for your help</font>
<p><font size="3" face="serif"><br>
</font><br>
<font size="3" face="serif">Le 01/09/2015 15:25, Field A.N. a écrit :</font>
<ul style="padding-left: 36pt"><tt><font size="3">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.<br>
<br>
--<br>
Adam Field<br>
Business Relationship Manager and Community Lead<br>
EPrints Services<br>
+44 (0)23 8059 8814<br>
<br>
<br>
<br>
<br>
<br>
On 27 Aug 2015, at 17:17, Lessard Josée wrote:<br>
<br>
</font></tt>
<ul style="padding-left: 36pt"><tt><font size="3">Hello,<br>
I have two questions on research Xapian :<br>
<br>
1. How query the fields : datestamp ?<br>
<br>
2. How query the fields : creators_name (name_family with name_given ) ?<br>
<br>
<br>
<br>
We added fields (datestamp and creators_name) in the file cfg.d/eprints_search_simple.pl and reindexed the database.<br>
$c->{search}->{simple} = <br>
{<br>
search_fields => [<br>
{<br>
id => "q",<br>
meta_fields => [<br>
"documents",<br>
"eprintid",<br>
"title",<br>
"creators_name",<br>
"abstract",<br>
"datestamp",<br>
…<br>
<br>
Thank you for your help<br>
<br>
Josée Lessard<br>
<br>
<br>
*** Options: </font></tt><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"><tt><font size="3" color="#0000FF"><u>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</u></font></tt></a><tt><font size="3"><br>
*** Archive: </font></tt><a href="http://www.eprints.org/tech.php/"><tt><font size="3" color="#0000FF"><u>http://www.eprints.org/tech.php/</u></font></tt></a><tt><font size="3"><br>
*** EPrints community wiki: </font></tt><a href="http://wiki.eprints.org/"><tt><font size="3" color="#0000FF"><u>http://wiki.eprints.org/</u></font></tt></a><tt><font size="3"><br>
*** EPrints developers Forum: </font></tt><a href="http://forum.eprints.org/"><tt><font size="3" color="#0000FF"><u>http://forum.eprints.org/</u></font></tt></a><tt><font size="3"><br>
</font></tt></ul>
<tt><font size="3"><br>
<br>
*** Options: </font></tt><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"><tt><font size="3" color="#0000FF"><u>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</u></font></tt></a><tt><font size="3"><br>
*** Archive: </font></tt><a href="http://www.eprints.org/tech.php/"><tt><font size="3" color="#0000FF"><u>http://www.eprints.org/tech.php/</u></font></tt></a><tt><font size="3"><br>
*** EPrints community wiki: </font></tt><a href="http://wiki.eprints.org/"><tt><font size="3" color="#0000FF"><u>http://wiki.eprints.org/</u></font></tt></a><tt><font size="3"><br>
*** EPrints developers Forum: </font></tt><a href="http://forum.eprints.org/"><tt><font size="3" color="#0000FF"><u>http://forum.eprints.org/</u></font></tt></a><tt><font size="3"><br>
<br>
<br>
</font></tt></ul>
<tt><font size="2">*** Options: </font></tt><tt><font size="2"><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a></font></tt><tt><font size="2"><br>
*** Archive: </font></tt><tt><font size="2"><a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a></font></tt><tt><font size="2"><br>
*** EPrints community wiki: </font></tt><tt><font size="2"><a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a></font></tt><tt><font size="2"><br>
*** EPrints developers Forum: </font></tt><tt><font size="2"><a href="http://forum.eprints.org/">http://forum.eprints.org/</a></font></tt><tt><font size="2"><br>
</font></tt><br>
</body></html>