Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish search system #1437

Open
voltan opened this issue Dec 13, 2016 · 26 comments
Open

Finish search system #1437

voltan opened this issue Dec 13, 2016 · 26 comments

Comments

@voltan
Copy link
Member

voltan commented Dec 13, 2016

  • Check new search engine chnages
  • Update modules to use new engine
@voltan voltan added this to the Version 2.6 milestone Dec 13, 2016
@voltan
Copy link
Member Author

voltan commented Feb 2, 2017

Finished, but more test needed

@Marc-pi
Copy link
Member

Marc-pi commented Feb 2, 2017

  • news / event : duplicated search result !!!

image

  • search result page search/guide/?q=keyword is uggly !

image

  • search result for page : wrong characters display in results, for latin characters éèàù, etc. !!!!

image

  • still old bugs (please have a look at our issue in guide issues)
    • not all results are retrieved (search holes),
    • and result sort has to be fixed
    • location are now well retrieved, but we need to isolate search results to distinguish category from location from item results

@voltan
Copy link
Member Author

voltan commented Feb 4, 2017

news / event : duplicated search result !!!

You need update search / event / news / guide modules to last version of git codes , all of them is update ? and need update Lib/Pi/Search too

search result page search/guide/?q=keyword is uggly !

Add this css on theme please

.search-result-item .thumbnail .caption {
    min-height: 80px;
}

search result for page : wrong characters display in results, for latin characters éèàù, etc. !!!!

I dont have any idea for it, I think its your old issues of markup service , we use code like this :

Pi::service("markup")->render($item["text_summary"], "html", "text");

not all results are retrieved (search holes),

I see problem on search tab, did you have add any change on this part? when click on taps , search result not show, need back to old codes , that work true

and result sort has to be fixed

we need add and update it on search api on all modules , I will do it

    protected $order = array(
        'id DESC'
    );

location are now well retrieved, but we need to isolate search results to distinguish category from location from item results

I can not undeastand wht do you want , if more customized needed I think we have to add custom search query on guide module , I still have problem by angolar js and have to add filter form manually on template

@voltan
Copy link
Member Author

voltan commented Feb 4, 2017

we need add and update it on search api on all modules , I will do it

finished , please check order

@Marc-pi
Copy link
Member

Marc-pi commented Feb 4, 2017

yes, everything was updated twice, core r5025 and modules


if you update ALL modules from system/modules/updateall

[warn] #20 in module/page/src/Api/Search.php
Declaration of Module\Page\Api\Search::buildUrl(array $item) should be compatible with Pi\Search\AbstractSearch::buildUrl(array $item, $table = '')

[warn] in module/comment/src/Api/Search.php
Declaration of Module\Comment\Api\Search::fetchResult(Pi\Application\Model\Model $model, Pi\Db\Sql\Where $where, $limit = 0, $offset = 0) should be compatible with Pi\Search\AbstractSearch::fetchResult(Pi\Application\Model\Model $model, Pi\Db\Sql\Where $where, $limit = 0, $offset = 0, $table = '')

[warn] in module/event/src/Api/Search.php
Declaration of Module\Event\Api\Search::getModel($table) should be compatible with Pi\Search\AbstractSearch::getModel($table = '')

[warn] in module/article/src/Api/Search.php
Declaration of Module\Article\Api\Search::buildUrl(array $item) should be compatible with Pi\Search\AbstractSearch::buildUrl(array $item, $table = '')

I'll answer your question below in another post

@Marc-pi
Copy link
Member

Marc-pi commented Feb 4, 2017

news / event : duplicated search result !!!

still there !!!!

Add this css on theme please

can we add this in default guide css ?

search result for page : wrong characters display in results, for latin characters éèàù, etc. !!!!

still there. why is it buggy only with Page module ???

not all results are retrieved (search holes),

no, old code was buggy too !!!

search result order
still old bugs (please have a look at our issue in guide issues)

  • not all results are retrieved (search holes),
  • and result sort has to be fixed
  • location are now well retrieved, but we need to isolate search results to distinguish category from location from item results

see https://github.com/pi-engine/guide/issues/387#issuecomment-273120064
and the comment below over there (fnac.com example i was talking over there about)

@Marc-pi
Copy link
Member

Marc-pi commented Feb 4, 2017

in /search/?q=nous page

[warn] in module/event/src/Api/Search.php
Declaration of Module\Event\Api\Search::getModel($table) should be compatible with Pi\Search\AbstractSearch::getModel($table = '')
12:50:09.5451
[warn] #20 in module/page/src/Api/Search.php
Declaration of Module\Page\Api\Search::buildUrl(array $item) should be compatible with Pi\Search\AbstractSearch::buildUrl(array $item, $table = '')

@Marc-pi
Copy link
Member

Marc-pi commented Feb 4, 2017

in search/event/?q=nous

[warn] #18 in module/event/src/Api/Search.php
Declaration of Module\Event\Api\Search::getModel($table) should be compatible with Pi\Search\AbstractSearch::getModel($table = '')

in search/page/?q=nous

[warn] #20 in module/page/src/Api/Search.php
Declaration of Module\Page\Api\Search::buildUrl(array $item) should be compatible with Pi\Search\AbstractSearch::buildUrl(array $item, $table = '')

@voltan
Copy link
Member Author

voltan commented Feb 4, 2017

please update core to my last push

@voltan
Copy link
Member Author

voltan commented Feb 4, 2017

can we add this in default guide css ?

Yes but have to load guide css on search-resutl.phtml template too

@voltan
Copy link
Member Author

voltan commented Feb 4, 2017

please check by last version of codes , after that is any bug is still available we can fix it

@Marc-pi
Copy link
Member

Marc-pi commented Feb 4, 2017

i still have those issues listed above :

  • warning when updateALL in system module
  • search holes, etc.

please recheck from #1437 (comment) (4 successive posts)

@voltan
Copy link
Member Author

voltan commented Feb 5, 2017

All of them?

@voltan
Copy link
Member Author

voltan commented Feb 5, 2017

I Update all modules and core to last version and check , I didnt see this errors

@Marc-pi
Copy link
Member

Marc-pi commented Feb 5, 2017

Here I run PHP7.1

@voltan
Copy link
Member Author

voltan commented Feb 5, 2017

its not for php version , I had this errors on php 5.6 and fix all of them , please check modules and core is update , did you update Lib/Pi/Search from my last change? and last change of page module?

@Marc-pi
Copy link
Member

Marc-pi commented Feb 5, 2017

i made a 3rd attempt, updating core and module, and i still have the warning when CLICKING ON UPDATE ALL MODULE, so on this page : /admin/system/module/refresh/active/1/from/installed

[warn] in module/comment/src/Api/Search.php
Declaration of Module\Comment\Api\Search::fetchResult(Pi\Application\Model\Model $model, Pi\Db\Sql\Where $where, $limit = 0, $offset = 0) should be compatible with Pi\Search\AbstractSearch::fetchResult(Pi\Application\Model\Model $model, Pi\Db\Sql\Where $where, $limit = 0, $offset = 0, $table = '')

[warn] in module/event/src/Api/Search.php
Declaration of Module\Event\Api\Search::getModel($table) should be compatible with Pi\Search\AbstractSearch::getModel($table = '')

[warn] in module/article/src/Api/Search.php
Declaration of Module\Article\Api\Search::buildUrl(array $item) should be compatible with Pi\Search\AbstractSearch::buildUrl(array $item, $table = '')

@Marc-pi
Copy link
Member

Marc-pi commented Feb 5, 2017

and please fix search holes and result sort https://github.com/pi-engine/guide/issues/387#issuecomment-273120064

@voltan
Copy link
Member Author

voltan commented Feb 5, 2017

This 3 warnings fixed

@voltan
Copy link
Member Author

voltan commented Feb 5, 2017

And I made change on search result query , can you please check it and see result is better or not : 0e5fff5

@voltan
Copy link
Member Author

voltan commented Feb 5, 2017

I think we can close it

@Marc-pi
Copy link
Member

Marc-pi commented Feb 6, 2017

well, we will fix search result / search holes in another isssue
here, we will have to improve layout consistency so we can close this issue

  • display in all case a header well background : display nr of result, or no result message
    • actually this block is displayed only in gloval search
  • on guide, we must have consistent rounded images : design is different from global search vs guide search.
  • On global we have list result per raw, on guide search it is column display

  • Global Search

image

  • guide search

image

  • news

image

  • event

image

  • page
    image

@voltan
Copy link
Member Author

voltan commented Feb 14, 2017

Can we talk about search module first here and after that when main search system finished talk about just guide here https://github.com/pi-engine/guide/issues/387 ?

display in all case a header well background : display nr of result, or no result message

Added

on guide, we must have consistent rounded images : design is different from global search vs guide search.

Set it by css on theme , its best way and very easy

On global we have list result per raw, on guide search it is column display

I add some changes , please check it

@Marc-pi
Copy link
Member

Marc-pi commented Feb 20, 2017

display in all case a header well background

ok, good, thanks

guide not rounded images : on guide, we must have consistent rounded images : design is different from global search vs guide search.

no, it's a non sense to rebuild theme css on each project. we must have a consistent way accross modules.

warnings on front user side of search module (there are no warnings anymore on admin side)

[notice] #39 in module/search/src/Block/Block.php
Undefined index: delay

search result for page : wrong characters display in results, for latin characters éèàù, etc. !!!!

still ko


On global we have list result per raw, on guide search it is column display

still ko, we must think about using a consistent way : all columns for all modules, or row results for all.
On row list is better if we want to activate push to front fees.
we need to check on mobile also


conf > anonymous search interval : it's secs or miliseconds ? we have to indicate what is the unit

image


i can remember you added ajax search on search front user index page, but that's not the case
i did not find any setting

image

@Marc-pi
Copy link
Member

Marc-pi commented Feb 28, 2017

@voltan let's finish this also !

@voltan
Copy link
Member Author

voltan commented Mar 3, 2017

no, it's a non sense to rebuild theme css on each project. we must have a consistent way accross modules.

Yes , But it should control by css, have general class and use it on all template, and just theme style load on all templates / pages , than its better put it on theme style. on shop module I forward more result on shop page, if it work true we can use it for other modules like guide and video and event

[notice] #39 in module/search/src/Block/Block.php
Undefined index: delay

You need update search module. I change version number , hope your problem solve

search result for page : wrong characters display in results, for latin characters éèàù, etc. !!!!

Here use escape too , like other parts , how do you solve escape problem on other modules? I replace escape by escape helper

still ko, we must think about using a consistent way : all columns for all modules, or row results for all.
On row list is better if we want to activate push to front fees.
we need to check on mobile also

My idea is , we need plan to inactive search result pages and forward result to modules , for modules like shop / guide / video / event we can do it , but for news / blog / page and ... we need use search front, I still dont know,

perhaps show result like google is better way and for more result forward user to module page

conf > anonymous search interval : it's secs or miliseconds ? we have to indicate what is the unit

is better to set it 0 , I think its sec, some of my customers have problem by it and I set it to 0

I add ajax search for block, search index page should update by angolarjs method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants