• MetaData search

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #21644  by chackem
 
I have a metadata field (text) for Social Security Numbers. (###-##-####).

Given the number: 123-45-6789, I can use the Advanced Search -> MetaData -> Funeral Group -> SSI field and search for 123-45-6789. That comes up perfectly. If, however, I search for 123* or *6789, it comes up with nothing. Is there someway to specify wildcard searching on metadata fields, or is that simply not an option? I've been looking through the docs and I can't seem to figure it out.

I'm using community 6.2.0 build 13077.

Thanks.
 #21650  by jllort
 
Probably there's a problem with default lucene tokenizer. Default tokenizer split word when found some special characters like ., and seems - too. 123-456-789 are tokenized by lucene to 3 words 123 456 and 789 and that causes the search problem.

I think here you got two options; or change the default tokenizer ( will need rebuild Lucene indexes which is fast operation ) or change character - to _ or simply remove -
 #21651  by chackem
 
Thanks for your prompt reply. You have been very responsive to all of my inquires and that has been very helpful. I have tested a bit further and I'm having problems with text property fields. I have the following:
Code: Select all
  <property-group label="Funeral" name="okg:funeral">
    <input label="Date Of Death" type="date" name="okp:funeral.dod" />
    <input label="Social Security #" type="text" name="okp:funeral.ssi"/>
    <input label="phrasetest" type="text" name="okp:funeral.pt"/>  
     <input label="link" type="link" name="okp:funeral.link"/>
    </property-group>
and I have the phrase "Hello World" in the phrasetest field of a document. However, when I search for "Hello World" or "Hello*", nothing comes up. The only thing that I can get to work correctly is the Date of Death field and a specific SS#, but not a SS# with a wildcard. I get the problem with "-"'s, but even when I replace the "-"''s with letters, the wildcards still don't work. I have rebuilt my lucene indexes.

I did create the phrasetest and link fields created AFTER I created and registered the Date of Death and Social Security # fields. Could that be a problem?

Any ideas?

Thanks.
 #21654  by jllort
 
I have tested in professional version at our online demo and goes right, you can test yourself, could be a bug on community version but is strange because these parts are so similar. Can you test in our online demo and confirm goes right but not in your community version ?
 #21672  by chackem
 
I went to the demo site, ( http://demo.openkm.com/OpenKM/login.jsp ). Searching worked perfectly fine, exactly the way I would expect it to. I then made a completely brand new install of the community edition, using as few changes as possible to the default configuration. I get the exact same result as before.

I installed using the file: openkm-6.2.0-community-linux-installer.run md5: b806bca75db473d02c6392e1791ae2ab on Linux Ubuntu 11.04. I've had no problems with any of the other openkm app. This seems to be the only problem.

BTW, on the online demo, 123* AND 123-* worked, so apparently the dashes aren't an issue with lucene.
 #21715  by chackem
 
I tested using the nightly build: 6.2.3-DEV build 7928 with Community Extension.

Searching appears to work perfectly in that version. So whatever happened appears to be fixed since the community download I used.
 #21792  by pavila
 
Good to know. Thank for testing.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.