OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

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.
bollini
 
Posts: 13
Joined: Thu May 27, 2004 5:51 am
Location: Italia

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??
ramon
 
Posts: 929
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

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.
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm

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
ramon
 
Posts: 929
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

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.
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm

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...
ramon
 
Posts: 929
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 1 guest