'OR' searching isn't working as I expect

29 views
Skip to first unread message

Patricia McGuire

unread,
Jan 28, 2014, 6:47:55 AM1/28/14
to ica-ato...@googlegroups.com
On our test site http://ec2-54-196-124-87.compute-1.amazonaws.com/index.php I quick search for Sara Turing and get 100 results.  I advanced search for Sara OR Turing (anywhere in both cases), and get 17 results. I reset, then advanced search for Turing OR Sara anywhere and get 96 results. Shouldn't the advanced searches produce the same number? And quicksearch, at most that number?


Dan Gillean

unread,
Jan 28, 2014, 1:02:45 PM1/28/14
to ica-ato...@googlegroups.com
Hi Patricia,

I have visited your site at the URL provided and have reproduced the behavior that you describe. I then tested in our local development environment, and unfortunately produced similar results. It seems that the advanced search interface's Boolean query builder is not functioning as expected, and is currently only returning results from the first term entered, rather than properly building the query and searching both terms. This is why the results are inconsistent -  when I search only the term "Turing" in your records, I get 96 results; when searching only "Sara", I received 18, and when searching both terms I received 101.

Thank you for reporting this issue, and I apologize that it is affecting your test site. I have filed an issue based on your feedback, and my own testing, here: https://projects.artefactual.com/issues/6268

I have marked this issue as a high priority (since it is a significant part of the application that is not functioning as expected), and have tentatively scheduled it for inclusion in our next minor release, AtoM 2.0.2. Currently, we hope to prepare AtoM 2.0.2 for release some time in March.

In the meantime, I will point out that Boolean queries can be entered directly into the global search box - i.e. you can search "Sara OR Turing" directly in the search box provided in the AtoM header bar - in fact, the default operator is "OR" when multiple terms are entered. You can also use quotations to search exact phrases, use AND, and NOT, and several other operators:


" Term enclosed in quotes must appear exactly as provided. Example: "towel" will find towel, but not towels.
+ Term after "+" must be in the result. Example: +tea cricket requires that results that must contain the term tea in them, and may have the term cricket.
- Term after "-" must not be in the result. Example: -tea cricket requires that results that must not contain the term tea in them, and may have the term cricket.
 ? Single character wildcard. Example: p?per will find paper and piper, but not pepper.
* Multiple character wildcard. Example: galax* will find galaxy and galaxies, but not galactic.
~ Fuzzy search. Will return results with words similar to the term. Example: fjord~ will find fjord, fjords, ford, form, fonds, etc.
&& Boolean operator. Can be used in place of AND. Will cause an error if combined with spelled-out operators. Example: Arthur && Ford AND Zaphod will fail; Arthur && Ford && Zaphod will succeed.
 ! Boolean operator. Can be used in place of NOT. Will cause an error if combined with spelled-out operators.
^ Boost relevance. Multiplies the relevance of the preceding term by the number following the symbol, affecting the sorting of the search results. Example: paranoid android^5 gives results containing the term "android" 5x the relevance as results containing only the word "paranoid", and will sort them closer to the start of the search results.
( )Used to group search clauses.





I hope that we can address this issue for you in an upcoming release.

Regards,

Dan Gillean, MAS, MLIS
AtoM Product Manager / Systems Analyst,
Artefactual Systems, Inc.
604-527-2056
@accesstomemory


On Tue, Jan 28, 2014 at 3:47 AM, Patricia McGuire <arch...@kings.cam.ac.uk> wrote:
On our test site http://ec2-54-196-124-87.compute-1.amazonaws.com/index.php I quick search for Sara Turing and get 100 results.  I advanced search for Sara OR Turing (anywhere in both cases), and get 17 results. I reset, then advanced search for Turing OR Sara anywhere and get 96 results. Shouldn't the advanced searches produce the same number? And quicksearch, at most that number?


--
You received this message because you are subscribed to the Google Groups "ICA-AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at http://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/1f2f17ef-a803-46b7-b781-7decddeac6c8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Patricia McGuire

unread,
Jan 29, 2014, 6:40:43 AM1/29/14
to ica-ato...@googlegroups.com
Thank you!
Reply all
Reply to author
Forward
0 new messages