<html><body bgcolor="#FFFFFF">
<p><font size="2" face="sans-serif">Just inspected our Xapian index with the delve utility.</font><br>
<font size="2" face="sans-serif">Datestamps are indexed like this, e.g. </font><br>
<br>
<font size="2" face="sans-serif">datestamp:2008-02-11 12:11:33</font><br>
<br>
<font size="2" face="sans-serif">However, you can't search on the - character. Currently, it's only possible to search like this: datestamp:(2008*) but not datestamp:(2008-02*) or datestamp:(2008-02-11*) or with double quotes.</font><br>
<br>
<font size="2" face="sans-serif">Can lib/search_xapian.pl be modified so that datestamps are indexed differently? </font><br>
<font size="2" face="sans-serif">Has something gone on with Seb's work </font><a href="https://github.com/eprints/xapianv2"><font size="2" face="sans-serif">https://github.com/eprints/xapianv2</font></a><font size="2" face="sans-serif"> ?</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>
<br>
<img width="16" height="16" src="cid:1__=4EBBF426DFD576F48f9e8a93df9@lotus.uzh.ch" border="0" alt="Inactive hide details for martin.braendle---03/09/2015 13:39:22---Hi Josée, for author searches, don't put the names into doubl"><font size="2" color="#424282" face="sans-serif">martin.braendle---03/09/2015 13:39:22---Hi Josée, for author searches, don't put the names into double quotes, but into</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">Von:        </font><font size="1" face="sans-serif">martin.braendle@id.uzh.ch</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 13:39</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Betreff:        </font><font size="1" face="sans-serif">[EP-tech] Antwort: 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="2" face="sans-serif">Hi Josée,</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
for author searches, don't put the names into double quotes, but into brackets:</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
creators_name:(Noyer, Jean-Louis) </font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
For datestamps, I'm not sure how they are indexed; in our case it just works with years:</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
date:2014</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
We have written a search help, </font><a href="http://www.zora.uzh.ch/help/"><font size="2" color="#0000FF" face="sans-serif"><u>http://www.zora.uzh.ch/help/</u></font></a><font size="2" face="sans-serif"> that details some Xapian options. Feel free to use what is usable.</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
Best regards,</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
Martin</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
--<br>
Dr. Martin Brändle<br>
Zentrale Informatik<br>
Universität Zürich<br>
Stampfenbachstr. 73<br>
CH-8006 Zürich</font><font size="3" face="serif"><br>
<br>
</font><img src="cid:1__=4EBBF426DFD576F48f9e8a93df9@lotus.uzh.ch" width="16" height="16" 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><font size="3" face="serif"><br>
</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Von: </font><font size="1" face="sans-serif">Lessard Josée <josee.lessard@cirad.fr></font><font size="1" color="#5F5F5F" face="sans-serif"><br>
An: </font><font size="1" face="sans-serif">eprints-tech@ecs.soton.ac.uk</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Datum: </font><font size="1" face="sans-serif">03/09/2015 11:54</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Betreff: </font><font size="1" face="sans-serif">[EP-tech] Re: Xapian Search</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Gesendet von: </font><font size="1" face="sans-serif">eprints-tech-bounces@ecs.soton.ac.uk</font><font size="3" face="serif"><br>
</font><hr width="100%" size="2" align="left" noshade><font size="3" face="serif"><br>
<br>
</font><font size="3" face="Arial"><br>
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><font size="3" face="serif"> </font>
<ul style="padding-left: 36pt"><font size="3" face="Arial"><br>
$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"><br>
So all these fields should be indexed by Xapian</font><font size="3" face="serif"> </font>
<p><font size="3" face="Arial">We have reloaded the config (epadmin), restarted Apache and reindexed our eprints.</font><font size="3" face="serif"> </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><font size="3" face="serif"> </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><font size="3" face="serif"> </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><font size="3" face="serif"> </font>
<p><font size="3" face="Arial"> 2. We can't search by creators_name</font><font size="3" face="serif"> </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><font size="3" face="serif"> </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><font size="3" face="serif"> </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><font size="3" face="serif"> </font>
<p><font size="3" face="serif"><br>
<br>
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>
</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></ul>
<br>
<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>
</font></tt></ul>
<tt><font size="2">*** Options: </font></tt><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"><tt><font size="2" color="#0000FF"><u>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</u></font></tt></a><tt><font size="2"><br>
*** Archive: </font></tt><a href="http://www.eprints.org/tech.php/"><tt><font size="2" color="#0000FF"><u>http://www.eprints.org/tech.php/</u></font></tt></a><tt><font size="2"><br>
*** EPrints community wiki: </font></tt><a href="http://wiki.eprints.org/"><tt><font size="2" color="#0000FF"><u>http://wiki.eprints.org/</u></font></tt></a><tt><font size="2"><br>
*** EPrints developers Forum: </font></tt><a href="http://forum.eprints.org/"><tt><font size="2" color="#0000FF"><u>http://forum.eprints.org/</u></font></tt></a><font size="3" face="serif"><br>
</font><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>