Linking / autocomplete not working....

87 views
Skip to first unread message

BrzI Channel

unread,
Apr 12, 2016, 7:39:13 PM4/12/16
to islandora
I thought I should open a new thread. Apologies if this is not how it should be done.

What we want to accomplish :

Auto-creation of tab with links to citations in Entity Person content model entries :

Installed :

Islandora 7.x-1.6
Islandora Solr Metadata 7.x-1.6
Islandora Solr 7.x-1.6
Islandora Basic Collection 7.x-1.6
Islandora Bookmark 7.x-1.6
Islandora Scholar 7.x-1.6
Islandora Entities 7.x-1.6
Islandora Google Scholar 7.x-1.6

What we have done so far :
Downloaded basic-solr-config from Discovery Garden
Made sure that MADS transformation to solr is uncommented.
Set Islandora Solr Metadata as default metadata display.

Reindexed.

No Solr errors in http://site:8080/solr

Workflow:

Go to a citation content model collection
Add object based on Citation MODS form
Expecting to see autocomplete in the "Authors" section (Qualified Name)
Nothing happens..

Are we doing this correctly ?

Thanks

Goran

Attached:

entity config screenshot
Solr indexing example
solrindexing.pdf
Untitled-1.jpg
Message has been deleted

BrzI Channel

unread,
Apr 13, 2016, 6:44:33 PM4/13/16
to islandora
So, as I created a citation record and in the Qualified name field added the Scholar name tomcat gave me this output....

SEVERE: org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Cannot parse 'MADS_disambiguated_fullname_mt:(* AND RELS_EXT_hasModel_uri_mt:"islandora:personCModel"': Encountered "<EOF>" at line 1, column 87.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    <BAREOPER> ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    <REGEXPTERM> ...
    "[" ...
    "{" ...
    <LPARAMS> ...
    <NUMBER> ...
   
 at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:147)
 at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:187)
 at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
 at org.apache.solr.core.SolrCore.execute(SolrCore.java:1797)
 at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:637)
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343)
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.search.SyntaxError: Cannot parse 'MADS_disambiguated_fullname_mt:(* AND RELS_EXT_hasModel_uri_mt:"islandora:personCModel"': Encountered "<EOF>" at line 1, column 87.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    <BAREOPER> ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    <REGEXPTERM> ...
    "[" ...
    "{" ...
    <LPARAMS> ...
    <NUMBER> ...
   
 at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:164)
 at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:72)
 at org.apache.solr.search.QParser.getQuery(QParser.java:142)
 at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:117)
 ... 22 more
Caused by: org.apache.solr.parser.ParseException: Encountered "<EOF>" at line 1, column 87.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    <BAREOPER> ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    <REGEXPTERM> ...
    "[" ...
    "{" ...
    <LPARAMS> ...
    <NUMBER> ...
   
 at org.apache.solr.parser.QueryParser.generateParseException(QueryParser.java:651)
 at org.apache.solr.parser.QueryParser.jj_consume_token(QueryParser.java:533)
 at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:191)
 at org.apache.solr.parser.QueryParser.Query(QueryParser.java:108)
 at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:97)
 at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:160)
 ... 25 more
Apr 13, 2016 3:35:32 PM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={q=MADS_disambiguated_fullname_mt:(*+AND+RELS_EXT_hasModel_uri_mt:"islandora:personCModel"&json.nl=map&fl=MADS_disambiguated_fullname_mt&fl=PID&start=0&rows=1000&version=1.2&wt=json} status=400 QTime=9
Apr 13, 2016 3:35:33 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Cannot parse 'MADS_disambiguated_fullname_mt:(Ivaz, Goran. P.* AND RELS_EXT_hasModel_uri_mt:"islandora:personCModel"': Encountered "<EOF>" at line 1, column 102.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    <BAREOPER> ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    <REGEXPTERM> ...
    "[" ...
    "{" ...
    <LPARAMS> ...
    <NUMBER> ...
   
 at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:147)
 at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:187)
 at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
 at org.apache.solr.core.SolrCore.execute(SolrCore.java:1797)
 at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:637)
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343)
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.search.SyntaxError: Cannot parse 'MADS_disambiguated_fullname_mt:(Ivaz, Goran. P.* AND RELS_EXT_hasModel_uri_mt:"islandora:personCModel"': Encountered "<EOF>" at line 1, column 102.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    <BAREOPER> ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    <REGEXPTERM> ...
    "[" ...
    "{" ...
    <LPARAMS> ...
    <NUMBER> ...
   
 at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:164)
 at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:72)
 at org.apache.solr.search.QParser.getQuery(QParser.java:142)
 at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:117)
 ... 22 more
Caused by: org.apache.solr.parser.ParseException: Encountered "<EOF>" at line 1, column 102.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    <BAREOPER> ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    <REGEXPTERM> ...
    "[" ...
    "{" ...
    <LPARAMS> ...
    <NUMBER> ...
   
 at org.apache.solr.parser.QueryParser.generateParseException(QueryParser.java:651)
 at org.apache.solr.parser.QueryParser.jj_consume_token(QueryParser.java:533)
 at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:191)
 at org.apache.solr.parser.QueryParser.Query(QueryParser.java:108)
 at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:97)
 at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:160)
 ... 25 more

I have attached both full files but this section seems to point to something .. . .
catalina.2016-04-13.log
catalina.out

Jared Whiklo

unread,
Apr 14, 2016, 9:42:07 AM4/14/16
to isla...@googlegroups.com
Yeah, I'm not sure what exactly you are doing (I don't use the citation
modules) but this "MADS_disambiguated_fullname_mt:(*" is a problem.

You either need to close the brackets or remove the front one.

Not sure how that got into the query.

cheers,
jared
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to islandora+...@googlegroups.com
> <mailto:islandora+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/39f403ee-dd32-48d0-b74e-20caa623e5c2%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/39f403ee-dd32-48d0-b74e-20caa623e5c2%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
I have plenty of talent and vision. I just don't give a damn.

signature.asc

BrzI Channel

unread,
Apr 14, 2016, 1:55:48 PM4/14/16
to islandora
Hi Jared,

The way it got into that query is because we were told that the Qualified Name field in a citation requires the value of the Scholar Identifier filed in parenthesis...

It seems that the dot before the closing bracket messed things up.

Will keep trying. Thanks for the feedback.

BrzI Channel

unread,
Apr 14, 2016, 4:32:32 PM4/14/16
to islandora
Tried again by adding a citation and in the Qualified name filed I typed (givaz) - with the brackets.


SEVERE
SolrCore
org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Cannot parse 'MADS_disambiguated_fullname_mt:(* AND RELS_EXT_hasModel_uri_mt:"islandora:personCModel"': Encountered "<EOF>" at line 1,​ column 87.
SEVERE
SolrCore
org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Cannot parse 'MADS_disambiguated_fullname_mt:(gi* AND RELS_EXT_hasModel_uri_mt:"islandora:personCModel"': Encountered "<EOF>" at line 1,​ column 89.
SEVERE
SolrCore
org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Cannot parse 'MADS_disambiguated_fullname_mt:(givaz* AND RELS_EXT_hasModel_uri_mt:"islandora:personCModel"': Encountered "<EOF>" at line 1,​ column 92.

Interesting that Tomcat did not create any log entries for this one...

Thanks

Goran

Aaron Collier

unread,
Apr 14, 2016, 6:13:02 PM4/14/16
to islandora
How's it going with this? I'm having the same problems and can never seem to get this working.

This page: http://v2p2dev.to.cnr.it/doku.php?id=repo371:fgsearch27 helped a bit, but still not quite there.

Peter MacDonald

unread,
Apr 15, 2016, 7:29:23 AM4/15/16
to isla...@googlegroups.com
Goran

The parentheses are added automatically to the qualified name field in my installation, so I'd recommend that you not add them manually. Your problem must be something else.

I struggled for the last two days trying to get the entities fields and the citation fields to work nicely together and they are now working fine. I know your pain. I'll make more suggestions as I think of things that might help you.

Peter MacDonald
--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Peter MacDonald,
Library Information Systems Specialist
Hamilton College Library
Clinton, New York
315 859-4493
pmacdona-hamilton (Skype)


BrzI Channel

unread,
Apr 15, 2016, 12:23:58 PM4/15/16
to islandora

BrzI Channel

unread,
Apr 15, 2016, 12:24:56 PM4/15/16
to islandora
This morning I entered the Qualified Name field without brackets and solr gave this :

BrzI Channel

unread,
Apr 15, 2016, 2:11:15 PM4/15/16
to islandora
Can somebody please confirm the following 3 points :

-Citation linking to Scholar works out-of-the box.
-No need to reindex with new foxmlToSolr.xslt file.
-Islandora Metadatda display can be left at DublinCore.

I am asking because we could probably live without autocomplete. But the linking is important for us.

Thanks

Goran

Peter MacDonald

unread,
Apr 17, 2016, 9:42:26 PM4/17/16
to isla...@googlegroups.com
Goran:

I offer the following, which may far too basic to help you solve the problems you are experiencing with Islandora Scholar, because it outlines pretty much what I have learned to do to configure the entities and citations to link with each other and result in working autocompletes.

-------------
To get the author and department fields in the MODS metadata in a citation object to appear as an autocomplete field, you must do all of the following after you have enabled the necessary modules (may not be an absolutely complete list):
--------------
- Make sure you have a line in the foxmltosolr.xslt calling the MADS_to_solr.xslt and make sure that the line is enabled.
- Check to make sure that the MADS_to_solr.xslt is in the path specified in that line in the foxmltosolr.xslt file.
Restart Fedora.
--------------
- Admin > Islandora > Metadata Display.
- Configure the Islandora Solr Metadata. (I don't know if it works with the "Dublin Core" schema.)
- You can use the built-in "Scholar" schema or create one of your own. It has to be associated with the "islandora:personCModel" content model.
- Adjust the fields and fields labels to your taste.
----------------------
Create three collections:
1. Create an Islandora collection to hold the citations (Citation Collection).
- Collection content model: collectionCModel
- Collection Policy: ir:citationCModel

2. Create an Islandora collection to hold organization entities (Department Collection).
- Collection content model: islandora:collectionCModel
- Collection Policy: islandora:organizationCModel

3. Create an Islandora collection to hold the person entities (Person Collection).
- Collection content model: islandora:collectionCModel
- Collection Policy: islandora:personCModel

--------------------
Create objects in each of the three collections:

1. Create a department entity in the Department Collection for each department needed.
- Add a new object to the organization (department) collection
- Choose the "Department MADS form" for metadata entry.
- Be sure to fill out at least the "Department Name", say, "History Department".
- Click "Ingest.

2. Create a person entity in the Person Collection.
- Add a new object to the person collection.
- Choose the Scholars MADS form for metadata entry.
- Be sure to fill out at least the "Display Name", say "Peter Jones", and the "Identifier" field, say "pjones-1".
- Click "Next".
- Upload an image (optional, but useful).
- Click "Ingest.

3. Create a citation object in the Citation Collection
- Add a new object to the citation collection
- Content Model: Citation Content Model (ir:citationCModel)
- Select the appropriate metadata form (if prompted).
- Supply a Title.
- Select "Last Name" from drop-down list (autocomplete), say "Jones".
- Select "Qualified Name" from drop-down list (autocomplete), say "Peter Jones (pjones-1)".
- Select "Department" from drop-down list (autocomplete), say "History Department".
- Scroll to the bottom and click "Next".
- Upload a PDF (optional).
- Click "Ingest".
----------------------
If this doesn't help you, I'm willing to check my module configuration settings, etc. with yours.
----------------------
Peter MacDonald


--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.

For more options, visit https://groups.google.com/d/optout.
Message has been deleted

BrzI Channel

unread,
Apr 18, 2016, 12:17:37 PM4/18/16
to islandora
Thank you Peter for taking the time to do such a detailed write-up. Much appreciated.

I will be keeping this message for future reference.

I will be opening a new thread as it seems very likely that my issue may be an incomplete/inaccurate/corrupt installation of the entities module. If that part is not in place then linking and autocomplete will not work either.

Goran
Reply all
Reply to author
Forward
0 new messages