Announcement

#16 2023-02-01 10:47:57

TOnin
Member
1970-01-01
106

Re: Is it possible to modify search.php to search for exact match??

No strange result from here, it looks ok for me now.
https://www.fotoarkiv.no/index.php?/search/6163
I started wondering about the presence of unbreakable space which is not exactly the same as an obvious space char, but this is not the case. If present in your texts, these spaces could be added to $drop_char_... lists
https://en.wikipedia.org/wiki/Non-breaking_space

Offline

 

#17 2023-02-01 13:40:21

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??

TOnin wrote:

No strange result from here, it looks ok for me now.
https://www.fotoarkiv.no/index.php?/search/6163
I started wondering about the presence of unbreakable space which is not exactly the same as an obvious space char, but this is not the case. If present in your texts, these spaces could be added to $drop_char_... lists
https://en.wikipedia.org/wiki/Non-breaking_space

Tried to add emty space to drop_char and it seems to do the trick!



https://www.fotoarkiv.no/index.php?/search/6170


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#18 2023-02-03 19:54:51

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??

Well I will have to open this issue again. I get TOTALLY unrelated search hits when searching for simple words like "Oslo"or "oslo". Some of the results hits does noy contain the word "Oslo" or "oslo" in any combination. No tag or keyword either. STRANGE !


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#19 2023-02-03 20:18:15

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??

EXAMPLE: a simple search for "Oslo" on selected  image description choice. Gives me 7425 hits on ONE album. see for yourself: https://www.fotoarkiv.no/index.php?/search/6159

One hit is https://www.fotoarkiv.no/picture.php?/1 … earch/6159 AND it contains NO word or letter like "Oslo"

HOWEVER the album author decription contains the word Oslo. Is this related?

Last edited by BigIsland270972 (2023-02-03 20:29:44)


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#20 2023-02-04 11:33:16

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??

ALSO Is it possible to disable the generation of new CACHE everytime search.php is loaded?
I want to be able to do this manually. This to lower the long loading time of search.php


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#21 2023-02-04 12:07:04

erAck
Only trying to help
2015-09-06
2035

Re: Is it possible to modify search.php to search for exact match??

The search.php long loading time is probably more due to the over 25000 tags being loaded as option values, each with a count of photos.


Running Piwigo at https://erack.net/gallery/

Offline

 

#22 2023-02-04 13:36:15

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??

Thanx for answering :-) WELL when I remove TAGS from search.tpl. search.php STILL loads slow so there something more happening i think..


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#23 2023-02-04 16:15:10

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??

Found something interesting in /themes/bootstrap_darkroom/template/search.tpl :)

The lines on top:
{footer_script require='jquery'}
    jQuery(document).ready(function() {
    jQuery("#authors, #tags, #categories").each(function() {
    jQuery(this).selectize({
    plugins: ['remove_button'],
    maxOptions:jQuery(this).find("option").length

if I remove the items #authors, #tags the loading of search.php is much FASTER.
SO actually it's an jQuery PROBLEM??


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#24 2023-02-04 16:52:15

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#25 2023-02-07 07:27:06

creaftomp
Member
2023-02-07
3

Re: Is it possible to modify search.php to search for exact match??

I would try with "Kommune: Flora" because did not see any "Kommune: Sande" in my results.

Offline

 

#26 2023-02-07 09:55:35

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??

creaftomp wrote:

I would try with "Kommune: Flora" because did not see any "Kommune: Sande" in my results.

I got a special customized searh.php here: https://www.fotoarkiv.no/search2.php
And I now got 3440 hits when searching for Kommune: Sande.
https://www.fotoarkiv.no/index.php?/search/6230


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#27 2023-02-07 10:29:29

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??

BUT there's MORE to  it than that. When I search for a known file (NF-AL_nb-no_10.jpg) in piwigo search.php. i got NO results. But when I search for the same in phpmyadmin it finds my file in a instant. SO there must be something wrong with Piwigo QUERY to the database....

https://www.fotoarkiv.no/priv/query1-2.png

https://www.fotoarkiv.no/priv/query2-1.png

https://www.fotoarkiv.no/priv/query3.png

https://www.fotoarkiv.no/priv/query4.png

Last edited by BigIsland270972 (2023-02-07 10:48:33)


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#28 2023-02-22 12:28:37

creaftomp
Member
2023-02-07
3

Re: Is it possible to modify search.php to search for exact match??

I want to be able to do this manually. This to lower the long loading time of search.php

Offline

 

#29 2023-02-22 15:13:55

matthys
Member
2014-04-02
188

Re: Is it possible to modify search.php to search for exact match??

Just curious, what would be the correct answer for the "Kommune: Sande" search?

I did as above, with quotes and got Search results 3412, tested a view and did contain the string as mentioned above.

Offline

 

#30 2023-02-22 15:45:15

BigIsland270972
Member
Norway
2022-03-15
374

Re: Is it possible to modify search.php to search for exact match??

matthys wrote:

Just curious, what would be the correct answer for the "Kommune: Sande" search?

I did as above, with quotes and got Search results 3412, tested a view and did contain the string as mentioned above.

Hello.

"Kommune: Sande" in search.php : 4579 hits
https://www.fotoarkiv.no/index.php?/search/6346

Kommune: Sande in search2.php  (EXACT search option) : 3440 hits
https://www.fotoarkiv.no/index.php?/search/6347


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact