[ 
https://issues.apache.org/jira/browse/TIKA-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12900772#action_12900772
 ] 

Alex Baranau commented on TIKA-488:
-----------------------------------

Let me elaborate on how the patch works (for those who don't have time to do 
check-out apply it and build things):

When user first opens the page he sees the dropdown with providers and "select 
provider" option is selected by default.
a) In case user leaves "select provider" (i.e. doesn't pick any provider) then 
system will determine the provider for him randomly. System will store the 
choice in cookie (one year length). Next time user opens a page the provider in 
dropdown will be pre-selected to the use the same search provider (user will 
see the same "skin" if he doesn't change provider). But user is able to change 
the provider using that dropdown (it is still available). If he does this, 
system acts as in point b).
b) In case user selects particular provider from the dropdown then system will 
store selection in a cookie (for a year) and will use it unless user one time 
selects to use different one.

So it's not that user is "locked" with some provider for a year if he doesn't 
make explicit selection: he/she is free to change it (I believe that the 
dropdown is quite noticeable). It's just that consistency of a "skin" that we 
support by storing selection (random or explicit) in a cookie for such a long 
period. We could change 

> Add alternative search provider on site
> ---------------------------------------
>
>                 Key: TIKA-488
>                 URL: https://issues.apache.org/jira/browse/TIKA-488
>             Project: Tika
>          Issue Type: Improvement
>          Components: documentation
>            Reporter: Alex Baranau
>            Priority: Minor
>         Attachments: adding_alternative_search_provider.patch
>
>
> Add additional search provider (to existed Lucid Find) search-lucene.com.
> Initiated in discussion: http://www.search-lucene.com/m/uTJxE2kcRv1
> Requirements (copied from discussion):
> Jukka Zitting: "Ideally the search box would allow the user to choose which 
> provider
> to use. Something like a cookie that remembers the user's selection
> would be nice. If the user doesn't make an explicit selection of the
> provider, then one should be selected randomly for the first search
> and remembered afterwards for consistency.
> It would be great if the required logic was implemented on the client
> side using javascript, as otherwise we'd need to start messing up with
> CGI scripts, etc."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to