forked from DebaucheryLibrarian/traxxx
Updated release search regex to exclude underscores.
This commit is contained in:
parent
1116e09af5
commit
0773a8019c
|
@ -1,25 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="details">
|
<div class="details">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="tidbits">
|
|
||||||
<a
|
|
||||||
:title="release.url && `View scene on ${release.entity.name}`"
|
|
||||||
:href="release.url"
|
|
||||||
:class="{ link: release.url }"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
class="tidbit date nolink"
|
|
||||||
>
|
|
||||||
<span class="date-compact">{{ release.date ? formatDate(release.date, 'MMM D, YYYY', release.datePrecision) : 'Date N/A' }}</span>
|
|
||||||
<span class="date-full">{{ release.date ? formatDate(release.date, 'MMMM D, YYYY', release.datePrecision) : 'Date unknown' }}</span>
|
|
||||||
|
|
||||||
<Icon
|
|
||||||
v-if="release.url"
|
|
||||||
icon="share2"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="site">
|
<div class="site">
|
||||||
<template v-if="release.entity.type === 'channel' && release.entity.parent && !release.entity.independent">
|
<template v-if="release.entity.type === 'channel' && release.entity.parent && !release.entity.independent">
|
||||||
<a
|
<a
|
||||||
|
@ -81,6 +62,14 @@
|
||||||
>
|
>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<a
|
||||||
|
class="banner"
|
||||||
|
href="https://enter.julesjordan.com/track/Mzk3MS4yLjMuNi4wLjE1MDQyLjAuMC4w"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<img src="/img/banners/julesjordan/728x90_jill_kassidy1.jpg">
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1277,7 +1277,7 @@ exports.up = knex => Promise.resolve()
|
||||||
SELECT releases.id, ranks.rank FROM (
|
SELECT releases.id, ranks.rank FROM (
|
||||||
SELECT
|
SELECT
|
||||||
releases_search.release_id,
|
releases_search.release_id,
|
||||||
ts_rank(releases_search.document, to_tsquery('english', array_to_string(array(SELECT * FROM regexp_matches(query, '\\w+', 'g')), '|'))) AS rank
|
ts_rank(releases_search.document, to_tsquery('english', array_to_string(array(SELECT * FROM regexp_matches(query, '[A-Za-zÀ-ÖØ-öø-ÿ0-9]+', 'g')), '|'))) AS rank
|
||||||
FROM releases_search
|
FROM releases_search
|
||||||
) ranks
|
) ranks
|
||||||
LEFT JOIN releases ON releases.id = ranks.release_id
|
LEFT JOIN releases ON releases.id = ranks.release_id
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
Loading…
Reference in New Issue