Proof of concept on the fly sitemap generation built during Blacklight-LD meeting#2351
Proof of concept on the fly sitemap generation built during Blacklight-LD meeting#2351mejackreed wants to merge 1 commit into
Conversation
Blacklight-LD meeting Paired on by: @magibney @mejackreed @agazzarini @netsensei
|
I know this if for searchworks, not blacklight, but, I gave this a try locally because I was curious and it is not working. The index view renders like below <sitemapindex xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd">
<sitemap>
<loc>http://localhost:3000/sitemap/0</loc>
</sitemap>
</sitemapindex>But the |
|
Yeah if you're not getting a |
|
I see from the following schema snippet ...
<dynamicField name="*_si" type="string" stored="true" indexed="true" omitNorms="true" />
...that the signature field "hashed_id_si" is indexed and stored, so that means if you run a query in Solr you should see each returned document with that new field. |
|
Shouldn't you be looking for |
|
@magibney sorry - I deleted my comment because I realized the branch was not quite right, will report back soon |
|
Ok, so yes, I am using Still the same issue though, nothing in the urlset on the show view. I wasn't sure if I needed a signatureField in my schema.xml. It wasn't on this PR, but, documentation seemed to allude to needing to do this. I guess I don't see how this works: @solr_response = Blacklight.default_index.connection.select({
params: {
q: "{!prefix f=hashed_id_ssi v=#{access_params}}", # changed f to my signature field
fl: 'id,last_updated'
}
})Or how it's supposed to work. Thanks for the help |
|
It looks like the hashed_id generated as the signatureKey should be associated with a sitemap |
|
With generous help from @magibney and @tampakis too - I was able to get this working. The most important missing bit was that the |
|
Reimplemented in a gem here: sul-dlss/blacklight_dynamic_sitemap#2 (comment) |
Paired on by:
@magibney
@mejackreed
@agazzarini
@netsensei
Todos / ?:
url_forwith a hostname in a load balanced scenario? (I don't seem to remember)access