EPrints Technical Mailing List Archive
Message: #02841
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Strange search behaviour
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Strange search behaviour
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- Date: Mon, 7 Apr 2014 08:48:26 +0000
Hi John, I’m sorry if I’m showing my ineptitude with this, there are still areas of terminal based Linux admin that I’m unsure of! Currently I’m trying to run this on a local VirtualBox machine which is a duplicate of our live server (I’m uncomfortable running it on the production box until I’m sure of what the issue is). I’m running the file as the eprints user that’s set up there, there is nothing else in the file above that first line. When I try to run it as Seb suggested I’m getting: No command 'epadmin' found, did you mean: Command 'lpadmin' from package 'cups-client' (main) epadmin: command not found However when I try to run it as you suggested, it runs fine here. My concern at the moment is that the search index does not seem to contain the keywords we expect it to; how should the index work normally? I’m being told by my colleagues that this is an issue dating back several months before my arrival and the issue is identical in the production as in my VirtualBox. On 04/04/2014 13:08, "John Salter" <J.Salter@leeds.ac.uk> wrote: >No, the index shouldn't need rebuilding on a regular basis. >During certain upgrades it might get rebuilt. > >I'd be more concerned as to why the script doesn't get recognised as a >perl script. >Is it executable? >Were you running it as the right user? >Was there any non-printing characters at the start of the file? >Is the *very* first line >#!/usr/bin/perl -w >-e.g. no comments before it or anything? > >Cheers, >John > >-----Original Message----- >From: eprints-tech-bounces@ecs.soton.ac.uk >[mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken >Sent: 04 April 2014 11:14 >To: eprints-tech@ecs.soton.ac.uk >Subject: [EP-tech] Re: Strange search behaviour > >That seems to work - I’ll run that locally to test and see if the index >produces the desired results. > >Is this something we should be setting a cron job to run? > >On 04/04/2014 10:49, "John Salter" <J.Salter@leeds.ac.uk> wrote: > >>What happens if you run the command like this: >>> perl bin/epadmin reindex <repo id> eprint --verbose >> >>Is there anything strange at the start of the file (e.g. hidden BOM >>indicator before the '#' on the first line? >> >>Cheers, >>John >> >> >>-----Original Message----- >>From: eprints-tech-bounces@ecs.soton.ac.uk >>[mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken >>Sent: 04 April 2014 10:26 >>To: eprints-tech@ecs.soton.ac.uk >>Subject: [EP-tech] Re: Strange search behaviour >> >>Which perl = usr/bin/perl >> >>First line of epadmin = #!/usr/bin/perl -w >> >> >> >>On 04/04/2014 09:25, "John Salter" <J.Salter@leeds.ac.uk> wrote: >> >>>First thing to check: >>>> which perl >>> >>>and see if that matches with the first line of bin/epadmin >>> >>>Cheers, >>>John >>> >>>-----Original Message----- >>>From: eprints-tech-bounces@ecs.soton.ac.uk >>>[mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew Beeken >>>Sent: 04 April 2014 09:03 >>>To: eprints-tech@ecs.soton.ac.uk >>>Cc: Paul Stainthorp; Bev Jones >>>Subject: [EP-tech] Re: Strange search behaviour >>> >>>Hi Seb, >>> >>>Ran this with bash and got the following back: >>> >>>epadmin: line 3: use: command not found >>>epadmin: line 4: use: command not found >>>epadmin: line 11: =pod: command not found >>>epadmin: line 13: =for: command not found >>>epadmin: line 15: =head1: command not found >>>epadmin: line 17: B: command not found >>>epadmin: line 19: =head1: command not found >>>epadmin: line 21: command: No such file or directory >>>epadmin: line 23: command: No such file or directory >>>epadmin: line 25: =over: command not found >>>epadmin: line 27: =item: command not found >>>epadmin: line 29: =item: command not found >>>epadmin: line 31: =item: command not found >>>epadmin: line 33: =item: command not found >>>epadmin: line 35: =item: command not found >>>epadmin: line 37: =item: command not found >>>epadmin: line 39: =item: command not found >>>epadmin: line 41: =item: command not found >>>epadmin: line 43: =item: command not found >>>epadmin: line 45: =item: command not found >>>epadmin: line 47: =item: command not found >>>epadmin: line 49: =item: command not found >>>epadmin: line 51: =item: command not found >>>epadmin: line 53: =item: command not found >>>epadmin: line 55: =item: command not found >>>epadmin: line 57: =item: command not found >>>epadmin: line 59: =item: command not found >>>epadmin: line 61: =item: command not found >>>epadmin: line 63: =item: command not found >>>epadmin: line 65: =item: command not found >>>epadmin: line 67: =item: command not found >>>epadmin: line 69: =item: command not found >>>epadmin: line 71: =item: command not found >>>epadmin: line 73: =item: command not found >>>epadmin: line 75: =item: command not found >>>epadmin: line 77: =item: command not found >>>epadmin: line 79: =item: command not found >>>epadmin: line 81: =item: command not found >>>epadmin: line 83: =back: command not found >>>epadmin: line 85: Type: command not found >>>epadmin: line 87: =head1: command not found >>>epadmin: line 89: =over: command not found >>>epadmin: line 91: =item: command not found >>>epadmin: line 93: START: command not found >>>epadmin: line 95: syntax error near unexpected token `newline' >>>epadmin: line 95: `=item B<epadmin> test I<repository_id>' >>> >>>I take it this isn’t what we should expect! >>> >>> >>>Andrew >>> >>>On 03/04/2014 15:51, "Sebastien Francois" <sf2@ecs.soton.ac.uk> wrote: >>> >>>>Andrew, >>>> >>>>What you need to do is reindex the data: >>>> >>>>bin/epadmin reindex <repo id> eprint --verbose >>>> >>>>Note that this may take some time... >>>> >>>>You restart the indexer when, for example, you upgrade your metadata >>>>schema (like adding a new fields to "eprint") - this is because the >>>>indexer runs into its own process space (so its copy of the perl >>>>modules >>>>and/or the local config might be out of date). >>>> >>>>Seb. >>>> >>>>On 03/04/14 15:49, Andrew Beeken wrote: >>>>> Thanks Seb, >>>>> >>>>> I¹m testing this on my local copy of the data and there are, in fact, >>>>>only >>>>> 13 records pertaining to this keyword in the eprints__rindex table. >>>>>Now, >>>>> I¹ve restarted the indexer however Bev says that this is something >>>>>she >>>>> does on occasion yet the issue is still present. >>>>> >>>>> Is it possible that the indexer is running into problems and, if so, >>>>>is >>>>> there an error log we can interrogate to try and find out what the >>>>>problem >>>>> is likely to be? >>>>> >>>>> Andrew >>>>> >>>>> On 02/04/2014 17:23, "Sebastien Francois" <sf2@ecs.soton.ac.uk> >>>>>wrote: >>>>> >>>>>> Andrew, >>>>>> >>>>>> Searches query the rindex tables so make sure your keyword is in >>>>>>there >>>>>> 72 times also. If not, you'll need to have the dataset reindexed >>>>>>(via >>>>>> epadmin). >>>>>> >>>>>> Seb. >>>>>> >>>>>> >>>>>> On 02/04/14 17:03, John Salter wrote: >>>>>>> Which version of EPrints? >>>>>>> There is a nice little issue I discovered whereby and 'short' words >>>>>>>are >>>>>>> thrown away be the indexer, but not the simple search handler, so >>>>>>> searching for e.g. 'Face to Face' wouldn't find 'Face to Face' - >>>>>>>but >>>>>>>I >>>>>>> believe this is limited to the simple search. >>>>>>> Is there any correlation in what you're seeing and short search >>>>>>>terms? >>>>>>> >>>>>>> Cheers, >>>>>>> John >>>>>>> >>>>>>> -----Original Message----- >>>>>>> From: eprints-tech-bounces@ecs.soton.ac.uk >>>>>>> [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Andrew >>>>>>>Beeken >>>>>>> Sent: 02 April 2014 12:40 >>>>>>> To: eprints-tech@ecs.soton.ac.uk >>>>>>> Subject: [EP-tech] Strange search behaviour >>>>>>> >>>>>>> Hello all! >>>>>>> >>>>>>> More of a question rather than a ³How do IŠ² this time! We¹ve >>>>>>>noticed >>>>>>> some odd behaviour in our search, mainly around searching on >>>>>>>keywords. >>>>>>> Our EPrints system manager uses keywords to allow her to quickly >>>>>>>find >>>>>>> records of interest or importance. Both the quick search and the >>>>>>> advanced search turn out 11 records when this keyword is used as >>>>>>>the >>>>>>> search term, a number she believes is wrong. I¹ve done a focussed >>>>>>>SQL >>>>>>> search in the database and I get 72 records with this keyword, all >>>>>>>of >>>>>>> which are published records. >>>>>>> >>>>>>> Is this just a problem on our installation or are there issues with >>>>>>>the >>>>>>> search in EPrints in general? >>>>>>> >>>>>>> Andrew >>>>>>> >>>>>>> The University of Lincoln, located in the heart of the city of >>>>>>>Lincoln, >>>>>>> has established an international reputation based on high student >>>>>>> satisfaction, excellent graduate employment and world-class >>>>>>>research. >>>>>>> >>>>>>> The information in this e-mail and any attachments may be >>>>>>>confidential. >>>>>>> If you have received this email in error please notify the sender >>>>>>> immediately and remove it from your system. Do not disclose the >>>>>>>contents >>>>>>> to another person or take copies. >>>>>>> >>>>>>> Email is not secure and may contain viruses. The University of >>>>>>>Lincoln >>>>>>> makes every effort to ensure email is sent without viruses, but >>>>>>>cannot >>>>>>> guarantee this and recommends recipients take appropriate >>>>>>>precautions. >>>>>>> >>>>>>> The University may monitor email traffic data and content in >>>>>>>accordance >>>>>>> with its policies and English law. Further information can be found >>>>>>>at: >>>>>>> http://www.lincoln.ac.uk/legal. >>>>>>> >>>>>>> *** Options: >>>>>>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >>>>>>> *** Archive: http://www.eprints.org/tech.php/ >>>>>>> *** EPrints community wiki: http://wiki.eprints.org/ >>>>>>> *** EPrints developers Forum: http://forum.eprints.org/ >>>>>>> >>>>>>> *** Options: >>>>>>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >>>>>>> *** Archive: http://www.eprints.org/tech.php/ >>>>>>> *** EPrints community wiki: http://wiki.eprints.org/ >>>>>>> *** EPrints developers Forum: http://forum.eprints.org/ >>>>>> *** Options: >>>>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >>>>>> *** Archive: http://www.eprints.org/tech.php/ >>>>>> *** EPrints community wiki: http://wiki.eprints.org/ >>>>>> *** EPrints developers Forum: http://forum.eprints.org/ >>>>> >>>>> *** Options: >>>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >>>>> *** Archive: http://www.eprints.org/tech.php/ >>>>> *** EPrints community wiki: http://wiki.eprints.org/ >>>>> *** EPrints developers Forum: http://forum.eprints.org/ >>>> >>>>*** Options: >>>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >>>>*** Archive: http://www.eprints.org/tech.php/ >>>>*** EPrints community wiki: http://wiki.eprints.org/ >>>>*** EPrints developers Forum: http://forum.eprints.org/ >>> >>> >>>*** Options: >>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >>>*** Archive: http://www.eprints.org/tech.php/ >>>*** EPrints community wiki: http://wiki.eprints.org/ >>>*** EPrints developers Forum: http://forum.eprints.org/ >>> >>>*** Options: >>>http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >>>*** Archive: http://www.eprints.org/tech.php/ >>>*** EPrints community wiki: http://wiki.eprints.org/ >>>*** EPrints developers Forum: http://forum.eprints.org/ >> >> >>*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >>*** Archive: http://www.eprints.org/tech.php/ >>*** EPrints community wiki: http://wiki.eprints.org/ >>*** EPrints developers Forum: http://forum.eprints.org/ >> >>*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >>*** Archive: http://www.eprints.org/tech.php/ >>*** EPrints community wiki: http://wiki.eprints.org/ >>*** EPrints developers Forum: http://forum.eprints.org/ > > >*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >*** Archive: http://www.eprints.org/tech.php/ >*** EPrints community wiki: http://wiki.eprints.org/ >*** EPrints developers Forum: http://forum.eprints.org/ > >*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech >*** Archive: http://www.eprints.org/tech.php/ >*** EPrints community wiki: http://wiki.eprints.org/ >*** EPrints developers Forum: http://forum.eprints.org/
- References:
- [EP-tech] Strange search behaviour
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Strange search behaviour
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Strange search behaviour
- Prev by Date: [EP-tech] Re: How to display the embargo expiry date to users
- Next by Date: [EP-tech] Search by creators email.
- Previous by thread: [EP-tech] Re: Strange search behaviour
- Next by thread: [EP-tech] Dataset metadata
- Index(es):