Hi Josh and everyone,
I realized I forgot to initialize the "exParser" before I use it.
And now, I successfully uploaded my custom bridge and also got successful search query results.
Thank you sooooooo much!
for guys after me who want to do similar things, I attached my java source code.
this code is
- searching attached experiment XML file
- parsing the hierarchy of the XML file
- extracting the keys and values like Key: "A.B.C1", Values: "Glass"
- update Lucene Index
So, later you can query by omero shell like
- Code: Select all
import omero
host = "xxx"
port = 4064
user = "yyy"
password = "zzz"
client = omero.client(host, port)
session = client.createSession(user, password)
search = client.sf.createSearchService()
search.onlyType("Image")
search.byFullText("A.B.C1:Glas*")
ids = [x.id.val for x in search.results()]
BK