bugs in search engine

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
bollini
Posts: 13
Joined: Thu May 27, 2004 5:51 am
Location: Italia

bugs in search engine

Postby bollini » Mon Sep 20, 2004 4:46 am

Hello OJS users,
I have found some bugs in the OJS search engine. If you search an article for 2 or + authors (simple/advanced search) you don't retrieve anything :!: moreover if you search a short word and this is contained in other words, your search returns a very high number of false results. I have corrected this error :P and have introduced the possibility of using jolly characters (* for 0+ char and ? for 1 char). If you want to use my solution you can download here the source code for this:
function buildSearchQuery()
function buildSearchSQL()
and replace the original code in search.php with them.

ramon
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil
Contact:

Bug in Search Engine

Postby ramon » Fri Sep 23, 2005 7:34 am

Hello OJSers,

I'm running into a big problem here:

When I perform a simple search for 1 word, in any field, the system returns everything pretty much ok.

However, when I try a search in Author with the author's complete name I get no results, no matter how complete the search string is.

I tried the bug fix by Bollini, but that didn't fix the problem either..

Any comments or suggestions??

kevin
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm
Contact:

Postby kevin » Fri Sep 23, 2005 9:59 pm

Assuming you're referring to OJS 1.x, I don't think it searches middle names.

ramon
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil
Contact:

Full Name Search

Postby ramon » Wed Sep 28, 2005 11:58 am

Kevin,

Any suggestions as to how I can implement that??
I'll look into it, but I'm no MySQL expert.. If I come up with something, I'll post it here.

Does 2.0 implement a full author name search??

Thanks

kevin
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm
Contact:

Re: Full Name Search

Postby kevin » Wed Sep 28, 2005 6:59 pm

ramon wrote:Any suggestions as to how I can implement that??


I'd imagine something like this would do it:

Code: Select all

Index: search.php
===================================================================
RCS file: /cvs/ojs/search.php,v
retrieving revision 1.82
diff -u -r1.82 search.php
--- search.php  12 Jul 2004 09:02:35 -0000      1.82
+++ search.php  29 Sep 2005 01:58:51 -0000
@@ -416,7 +416,7 @@
 
        // fields that can be searched
        $fields = array(
-               "query_author" => array("chFirstName", "chSurname", "chAffiliation"),
+               "query_author" => array("chFirstName", "chSurname", "chMiddleInitial", "chAffiliation"),
                "query_title" => "chMetaTitle",
                "query_date_from" => "a.dtDatePublished",
                "query_date_to" => "a.dtDatePublished",


Does 2.0 implement a full author name search??


Yes
Last edited by kevin on Thu Sep 29, 2005 8:52 am, edited 1 time in total.

ramon
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil
Contact:

Full Name Search

Postby ramon » Thu Sep 29, 2005 6:35 am

Kevin,


Your suggestion worked, but the order must be

"query_author" => array("chFirstName", "chMiddleInitial", "chSurname", "chAffiliation"),

Thank you...


Return to “OJS Editorial Support and Discussion”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest