Open dredknight opened 7 years ago
Which version of Shoes are you using? The current beta 3.3.3 no longer relies on ftsearch
. The sample you mentioned is working here.
Thanks. I was using the current prod 3.3.2. With 3.3.3 it works fine but when I do a search for some reason it duplicates the results. Try for example to search for "align". You will see 5-6 results where the first and the last are the same.
Shoes now use Picky as a search engine. The current behaviour is trying to mimic Shoes former ftsearch
as close as possible. It may need some fine tuning. However, I am not getting the extra results you are talking about.
I get 5 for align but I'm not running on the latest manual. Not major issue for me but it needs to stay open until it's fixed or agreed to be a non-issue.
@dredknight thanks for changing the title. Would you mind look at all the result one-by-one? I suspect there are the word align
multiple times in the same section, thus repeating. It would be kinda OK but could be improved.
@BackOrder nice idea! I opened "align" page and the word is actually referred numerous times (4 or 5). I tried the same with dash - it has the word in the header and twice in the text. Unfortunately after removing the word from text nothing changed. Still the answers are double.
Could you test something on your side (v3.3.3) in the search type "dash". In the default manual vesion dash is still not present so no results should pop. However the search result says different:
As you may see there is no "dash" word in the result in any of the text.
P.S.
Also in some of the "align" results there was no "align" word either. For example one of the results was -> rise.
I can further dive into this but I need a direction where to start from. For example where is the code to troublehoot for picky? and how to follow up on whats happening when searching?
I will try to dig something on my own tomorrow :D.
Open Windows Explorer, copy %LOCALAPPDATA%\Shoes
and remove index
directory. Reload Shoes Manual and Picky will reindex. Should be fine.
Thanks!! I found the issue for duplication!
Article gets duplicated when the searched word can be found both in header and body at least once.
here is the following test:
hm... it seems this formula is not the same for all elements. For example "flow" can be found in its header and body text but the engine gives only 1 Flow result.
Some tests with "align" text provide the same results as Dash. When "align" title is changed to something different, duplication stops.
@BackOrder , @ccoupe I think I bumped into something. Any of the three examples below is executed by Shoes.
Try to put the last one as a code in the manual.
{{{ Shoes.app( width: 400, height: 100 ) do line 10,40,350,40, dash: :onedot, stroke: green, strokewidth: 3 line 10,20,350,20, stroke: green, strokewidth: 3 end }}}
Launch the manual and you will get this error. The other two examples work fine.