Search for a part of the signature

19 views
Skip to first unread message

Tonio Seiler

unread,
May 17, 2021, 6:15:53 AM5/17/21
to AtoM Users

Hi,

We have a big project using the REST API.
Now we have the follwing problem: is it possible to search for a part of the signature like: CH FF1971-C A-01. In Google it would be like the search for "CH FF1971-C A-01". If I enter this string in the searchfield, its like search for all of the strings tohether, wich does not make sense.... Thanks for your help...

Dan Gillean

unread,
May 17, 2021, 9:45:58 AM5/17/21
to ICA-AtoM Users
Hi Tonio, 

A couple of tips that might help: 

First, just about any parameter that can be used in the advanced search interface can also be applied to the information object browse REST API endpoint. In the advanced search, you can limit a field to searching against the reference code, which should help narrow the results. 

Second, there should be a big difference if you use quotations in your search. When you search without quotations, then AtoM will use AND as the default operator between any element. In some cases, dashes are also ignored (and treated as spaces) so a search for CH FF1971-C-A-01 can in fact be interpreted as a search for:
  • CH in any field, AND
  • FF1971 in any field, AND
  • C in any field, AND
  • A in any field AND
  • 01 in any field
When you put a string in quotations, it tells the search index to perform an exact search - meaning only matches that have CH FF1971-C A-01 in that exact order will be considered matches. 

Here's an example of searching for a record by putting the full reference code in quotations, and limiting the matching results to the reference code field in the Demo site: 
You should be able to apply very similar parameters to a REST API query, like so: 

  • [your base URL here - e.g. https://www.example.com]/api/informationobjects? sq0=%22CH FF1971-C A-01%22&sf0=referenceCode&topLod=0
Hopefully that will help return more precise results?

Finally, please note that there have been some improvements to the search index in release 2.6.3 that might help remove noise from the results. If you've not updated to the most recent version, you may wish to try this. 

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/e673e197-8af2-483e-b218-c461f798ca77n%40googlegroups.com.

Furbo Tonio

unread,
May 19, 2021, 8:43:25 AM5/19/21
to ica-ato...@googlegroups.com
Thanks, This helps a lot….
–––––––––––––––––––
Tonio Seiler
Dipl. Ing. FH Informatik
to...@furbo.ch

Furbo GmbH
Rüdigerstrasse 10
8045 Zürich

Abwesenheit: Mittwochs

You received this message because you are subscribed to a topic in the Google Groups "AtoM Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ica-atom-users/XkmaYDW8E6g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/CAC1FhZ%2BV8NRdhT5jv-F8%3DB7SDjNBSXPLL91pBnMkYCBEq4kduA%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages