Page 1 of 1

Multiple "name" search

PostPosted:Mon Jun 25, 2018 9:14 am
by openkm_user
Hi,

Is there a way to search for multiple names, like instead of only one name in,

name.JPG
name.JPG (27.05 KiB) Viewed 3190 times

Can we search for multiple values at once? For example, instead of searching only for file1.doc is it possible to search for file1.doc, file2.doc, file3.doc in one single search which results in showing whatever file is available in DMS. We use REST API mainly, it will be great if something like this is available in API.

Thanks!

Re: Multiple "name" search

PostPosted:Tue Jun 26, 2018 7:08 am
by openkm_user
I have already tried comma, space, semicolon, AND, OR, &&, ||, etc, nothing worked, so I would like to know if there is any other way.

Yes, I am going to search for exact file name, so multiple search is a good idea, but the issue is, we will be searching for 1000s of names and it is only part of a bigger program. This is taking a lot of time to return results.

Thanks for taking time and answering!

Re: Multiple "name" search

PostPosted:Tue Jun 26, 2018 7:55 am
by lnovoa
Hi!,

In OpenKM if the implicit search is allowed, for example for this case commented file1.doc, file2.doc ... you just have to put a minimum of 3 characters for example: "fil" and all the records that contain these characters will appear.
Maybe for your case, it is not working because you have to reindex your storage with Lucene.
This is done from the administration panel in rebuild indexes.

I leave a search link
https://docs.openkm.com/kcenter/view/ok ... earch.html

Re: Multiple "name" search

PostPosted:Tue Jun 26, 2018 8:01 am
by openkm_user
Hi,

Thanks for replying, file1.doc, file2.doc, etc., is just for an example, actual names searched are account numbers. They are random 10 digit numbers for folders inside which there will be files. So we will search like 1018755685, 1018755686, etc., these are folder names.

Thanks!

Re: Multiple "name" search

PostPosted:Tue Jun 26, 2018 8:28 am
by lnovoa
Hi!,

By default the OpenKM search is done by documents,
if you want to search by folders you have to mark it in the advanced tab.

Re: Multiple "name" search

PostPosted:Tue Jun 26, 2018 9:13 am
by openkm_user
Of course, I am doing exactly that, I just want a way to put in more than one "name" in that field while searching for a folder.

Re: Multiple "name" search

PostPosted:Tue Jun 26, 2018 5:46 pm
by lnovoa
Hi!,
Openkm uses the Lucene analyzer for its searches (https://docs.openkm.com/kcenter/view/ok ... lyzer.html).
When a document is uploaded, it is automatically indexed in order to optimize future searches.

As I have mentioned before if you want to do an implicit search in the desired field you simply have to insert the desired string and all the approximate results will appear.

I also give you a link about Lucene where you can specify your searches better.
http://www.lucenetutorial.com/lucene-query-syntax.html