Module installation

Created on 22 April 2024, 7 months ago
Updated 1 May 2024, 7 months ago

Current Environment

Drupal 10

Modules already installed:
search_api_solr >> Version: 4.3.3
search_api >> Version: 8.x-1.34
facets >> Version: 2.0.7

Solr server is up and running as expected

I've installed 'advanced search' to success: Version: 2.0.1

However, I'm having a hard time implemented 'advanced search' module

Questions

a) Your instruction reads: https://www.drupal.org/project/advanced_search
"Post-Installation
You can set some configuration at admin/config/islandora/advanced_search"

Instead, I found "Islandora Advanced Search Settings" @ /admin/config/search/advanced

b) I aslo read the 'README' Community documentation.
Do I need to install sperately "Islandora"?
https://github.com/Islandora/advanced_search/blob/2.x/README.md#installa...

Their configuration file point to the same pace as yours:
admin/config/islandora/advanced_search

Installation

To download/enable just this module, use the following from the command line:

composer require islandora/islandora
drush en advanced_search

*NOTE* I attempted to install islandora, but I got:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - islandora/islandora 1.0.0 requires drupal/jwt 1.0.0-alpha6 -> found drupal/jwt[1.0.0-alpha6] but it does not match your minimum-stability.
    - islandora/islandora[1.1.0, ..., 1.1.1] require drupal/jwt 1.0.0-beta1 -> found drupal/jwt[1.0.0-beta1] but it does not match your minimum-stability.
    - islandora/islandora[2.0.0, ..., 2.0.1] require islandora/jsonld dev-8.x-1.x -> found islandora/jsonld[dev-8.x-1.x] but it does not match your minimum-stability.
    - islandora/islandora[2.1.0, ..., 2.11.0] require drupal/flysystem ^2.0@alpha -> found drupal/flysystem[dev-2.0.x, dev-2.1.x, dev-2.2.x, 2.0.0-alpha1, ..., 2.2.x-dev (alias of dev-2.2.x)] but it does not match your minimum-stability.
    - Root composer.json requires islandora/islandora * -> satisfiable by islandora/islandora[1.0.0, 1.1.0, 1.1.1, 2.0.0, ..., 2.11.0].

*c)* From Islandora documentation:

https://islandora.github.io/documentation/user-documentation/searching/

*Searching Islandora*

The Islandora Starter Site comes with a search page pre-configured (accessible at '/solr-search/content'). To edit the search page, navigate to '/admin/structure/views/view/solr_search_content'.

After installing 'advanced search", I still do not have any "solr_search_content" view autogenerated.

Though I'm able to create a custom 'search page', but problably the settings will not be the same.

*D) Collection Search*
I would like to set a collection search; however, I'm not understanding quite well the following instruction:

To support collection based searches you need to index the field_member_of for every repository item as well define a new field that captures the full hierarchy of field_member_of for each repository item.

what would be "field_member_of "? is that a generic name?

When I select the 'fields' tab in my solr index, and try to add 'field_member_of' that field name does not exist.
is that a generic name?
*Instruction:*

Add a new Content solr field field_decedent_of to the solr index at admin/config/search/search-api/index/default_solr_index/fields.

Many thanks in advance for your help!

💬 Support request
Status

Active

Version

2.0

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @La558
  • Ok.

    I managed to install Islandora by changing the value from 'stable' to 'dev' in the composer.json file

    however, after installation and going into the 'extend' page, I noticed that the 'islandora Advanced Search' is Deprecated.
    https://groups.google.com/g/islandora/c/SEOAWJrfE_M

    The submodule of Islandora called "Islandora Advanced Search" is being deprecated [per TAG meeting notes where it was decided]. It is being replaced by the independent "Advanced Search" module. This module includes all the code that was in Islandora Advanced Search, and also contains some additional features (including better use of edismax search).

    The Islandora Advanced Search submodule will remain in the islandora module's 2.x branch but will be marked deprecated. It will be removed in Islandora 3.x.

    To get the current Advanced Search module, use `composer require drupal/advanced_search`. (not a typo; this will download it from its new location on Drupal.org).

    Unfortunately there is no way to convert your block placement and other configuration options from Islandora Advanced Search to Advanced Search. If you need help porting your setup, please contact the #support channel on Slack. I sent a query out earlier, and I am not aware of anyone actively using Islandora Advanced Search.

    * on Github at https://github.com/Islandora/advanced_search
    * on Drupal.org at https://www.drupal.org/project/advanced_search

    So, it looks like the instructions on https://github.com/Islandora/advanced_search/blob/2.x/README.md needs to be updated at least under the installation part from:
    composer require islandora/islandora
    to
    composer require drupal/advanced_search

    then, the following should remain.
    drush en advanced_search

    Under *Configuration* the url should change
    from:
    admin/config/islandora/advanced_search
    to:
    /admin/config/search/advanced

    Now, can you help me please with the instructions under "Configure Collection Search", I don't seem to see where to find and set "field_member_of" and "field_decedent_of"

    Many thanks in advance!

  • Hello,
    A member from the Islandora community guided me. Here is what I needed to do. In the desired 'content type', I had to create a field -for convenience and consistency, name it "Member of" > machine name: "field_member_of". Here comes the key part, set it up as a Entity reference > Reference type: Content Content type: Repository Item
    I still have things to figure out to make it work; however, this would be the response to this question related to "field_member_of"

  • Issue was unassigned.
  • 🇨🇦Canada rosiel

    Hi,

    The trouble you’re having is completely understandable. I’ve made some suggestions to our README that I hope will help. You can see the changelog at https://github.com/Islandora/advanced_search/pull/46 and any feedback you have is welcome.

    To solve your most recent questions (which are also, I hope, clearer now in the readme):
    - we assume you are using an entity reference field on your content type that allows a node to point to its parent node. In the core islandora module it’s called “field_member_of”. You don’t need to call it field member of, if you’re not using islandora.
    - the view “solr search content” also comes with the islandora starter site, but it doesn’t have to be that exact view. You just need a Search API view. Unlike the normal process of creating a search api view, you don’t need to add a “full text” exposed filter.

    Third, if you want to see it in action, try the islandora sandbox at https://sandbox.islandora.ca

    Fourth, if you join our Slack we may be able to provide more real-time assistance. https://www.islandora.ca/community

Production build 0.71.5 2024