You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by "Victoria Stuart (VictoriasJourney.com)" <ma...@VictoriasJourney.com> on 2023/03/26 20:16:42 UTC

Persist query terms in search input element (cleared upon search)?

When I submit a query, the search input element clears.

E.g. if I search for "apple" in the input element below, Solr searches for "apple", but the search input element is cleared / becomes blank.

  <input type="text" id="query" autocomplete="off">

The search term(s) persist in the URL:

  ... /#q=apple

How can I persist the search terms in the search field entry box. once I submit a search?

(I'm not sure if this issue is Solr-related, or a non-related HTML or JavaScript coding issue.)

Re: Persist query terms in search input element (cleared upon search)?

Posted by Jan Høydahl <ja...@cominvent.com>.
Hi,

It would help if you told us what web application you are using. I would assume it is the Solr Admin UI, but I suspect you are talking about some other 3rd party application with a search field. In that case, you'll need to direct the question to the vendor of that application.

Jan

> 26. mar. 2023 kl. 22:16 skrev Victoria Stuart (VictoriasJourney.com) <ma...@VictoriasJourney.com>:
> 
> When I submit a query, the search input element clears.
> 
> E.g. if I search for "apple" in the input element below, Solr searches for "apple", but the search input element is cleared / becomes blank.
> 
>  <input type="text" id="query" autocomplete="off">
> 
> The search term(s) persist in the URL:
> 
>  ... /#q=apple
> 
> How can I persist the search terms in the search field entry box. once I submit a search?
> 
> (I'm not sure if this issue is Solr-related, or a non-related HTML or JavaScript coding issue.)