<p>Hi Phil,</p>
<p>For info, which EPrints version are you using?</p>
<p>Worth a try:</p>
<p>- have you tried to reindex the eprint dataset? (bin/epadmin reindex <archive_id> eprint)</p>
<p>- have you tried debugging the search to see which SQL statement gets executed (**) ?</p>
<p>Seb</p>
<p>(**) to enable SQL debugging, edit perl_lib/EPrints/Search/Condition.pm, look at the end of "sub sql" for:</p>
<p>#print STDERR "\nsql=$sql\n\n";</p>
<p>Un-comment the line above, restart apache and re-run the problematic search - feel free to copy/paste the SQL query here so we can have a look.</p>
<p> </p>
<p>On Wed, 25 Jul 2012 22:12:26 +1000, "Phil" <philpearson@iinet.net.au> wrote:</p>
<blockquote style="padding-left: 5px; border-left: 2px solid #1010ff; margin-left: 5px; width: 100%;"><!-- html ignored --><!-- head ignored --><!-- meta not allowed --><!-- meta not allowed --><!-- style not allowed -->
<div class="WordSection1">
<p class="MsoNormal">If anyone can help we would very much appreciate it, we have posted this issue numerous times and had someone control our eprints server but the problem will not go away. </p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">I will explain it step by step</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">If I look at the database directly and query the index I get the following result</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"><img id="Picture_x0020_1" src="https://roundcube.ecs.soton.ac.uk/roundcubemail.pgstaff/?_task=mail&_action=display-attachment&_file=rcmfile0" alt="" width="542" height="276" /></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">You can see the word “Green” and “Bans” are in the index</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">So we should be able to find this book in the advanced or simple search using the term “green bans”</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"><img id="Picture_x0020_2" src="https://roundcube.ecs.soton.ac.uk/roundcubemail.pgstaff/?_task=mail&_action=display-attachment&_file=rcmfile1" alt="" width="860" height="157" /></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">Unfortunately when we do we get only one result below</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"><img id="Picture_x0020_3" src="https://roundcube.ecs.soton.ac.uk/roundcubemail.pgstaff/?_task=mail&_action=display-attachment&_file=rcmfile2" alt="" width="934" height="333" /></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">Whilst this is correct, it is incomplete, the search should have also returned record 3594</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">If you look back at the SQL above you will see the other words in the title</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">If I put a few of them in the search as per below, I get the correct result:</p>
<p> </p>
<p class="MsoNormal"><img id="Picture_x0020_4" src="https://roundcube.ecs.soton.ac.uk/roundcubemail.pgstaff/?_task=mail&_action=display-attachment&_file=rcmfile3" alt="" width="829" height="124" /></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"><img id="Picture_x0020_5" src="https://roundcube.ecs.soton.ac.uk/roundcubemail.pgstaff/?_task=mail&_action=display-attachment&_file=rcmfile4" alt="" width="859" height="347" /></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">I have erased the index record and reindexed the item to no avail.</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">This is not the only record that does not return from a search and it makes our catalogue unusable.</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">I have installed xapian but that also gives me problems as per a post of mine two days ago.</p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal">We have put a lot of effort into this migrating from the old system, if we cannot fix this we will have to go through the whole process again with something else.</p>
<p> </p>
</div>
</blockquote>
<p> </p>