Multiple actions on a single search bar

Can a search bar have multiple actions that the user can take on it?

Context: I’m designing a system for a bike shop to manage the maintenance of all their bikes. Currently the mechanics fill out generic paper sheets by hand and once a month the manager manually adds them all to a google doc. The new system would let mechanic print out a custom paper sheet, then go into this app and update it themselves.

Problem: So the mechanic has two actions they need to do once they’ve entered a bike’s number: print out the sheet, and log the repair. Is it acceptable to do two action buttons underneath a single search? I’m imagining it a bit like the Google Homepage, where you can do both ‘search’ and ‘I’m feeling lucky’. If you hit enter, it would default to logging the repair.

Is there any UX pattern this is breaking? Is it intuitive?

low fidelity screenshot with one search bar and two buttons below it

Constraints: Mechanics may print out a sheet and then not come back to the site until much later. Mechanics generally won’t need to print out multiple sheets at once. Mechanics can’t leave the repair page open as it is on one shared computer for multiple mechanics. All the bikes have a 3 digit number. Every search will return exactly one page (i.e., I can’t search ’23’ and get ’23, ‘231, 234’.)

How does a typical, healthy Google Search Console history look like?

The following is a snapshot of my website’s Google Search console history in the past 6 months. Unfortunately, I don’t have any reference to understand whether this looks bad, healthy/typical, or even great. Based on your experience working with different sites, would you say this is a bad, typical, or great progress?

enter image description here

How to search a post knowing only taxonomy value?

I have created a search bar with auto-completion which trigger the property-search.php script. The search function is working well, but for the moment I can only search for the post name, eg:

$  args = array(     'post_type' => 'zoacres-property',     'posts_per_page' => absint( 10 ),     'order'   => 'DESC',     's'       => esc_attr( $  _GET['prop_name'] ),     'meta_query' => $  meta_query,     'tax_query' => $  tax_query );  $  query = new WP_Query( $  args ); $  found_posts = $  query->found_posts; 

My goal is allow the user to search a property using the name of the property (as already did), the property region and the zone.

For enable the property region and zone, I used the meta_query parameter and filled the array with the taxonomy linked to the property, eg:

$  region_tax_array = array(     'key' => 'property-region',     'value' => 'foo', //only for test purpose     'compare'=> 'IN' );  $  meta_query = array(     'relation' => 'AND',     $  property_region ); 

the main problem here is that no content is returned, and that is strange ’cause the table contains the following values:

wp_terms

term_id | name | slug | term_group     62      foo    foo       0 

wp_term_taxonomy

term_taxonomy_id | term_id | taxonomy             62              62      property-region      

wp_term_relationships

 object_id | term_taxonomy_id |      29848           62 

what I did wrong?

How To Get Item Numbers On Google Search? [duplicate]

This question already has an answer here:

  • What are the best ways to increase a site's position in Google? 24 answers

Not sure which stack to put this on so going to start here. I am wondering how do I get my “dyanmic” pages to show up on google search results. I know after I post this posting and go to google, I will be able to find this question no problem and within a few mins.

I want to do the same thing but for my website. I know that my site is small and not like stack so I could be on page 1000 for all I know but right now it seems like I am nowhere to be found.

I have some obscure item numbers, and when I put them in google, I literally will get 1 page back with maybe 5 results yet my website won’t be any of those results.

I take all my item numbers and make the url and put those in sitemaps like this

http://www.example.org/itemsearch?search=pt-14148414 

I sent my sitemaps to google like 3 months ago so it should be indexed by now.

How to create custom search form function including post “tags”

This is my HTML:

<input type="text" class="keyword" name="keyword" id="keyword" placeholder="Search video..."> <button id="search-keyword">Search</button> 

When I click the “Search” button start a script like this:

if($  ('.current').hasClass('search-select')){     action = 'my_create_posts_search'; //php function to do      ab = document.getElementsByClassName('keyword')[0].value; //get the value of input } 

Then an Ajax function starts:

 $  .ajax({     type: "POST",     url: ajax_params.ajax_url, //wordpress ajax     data: {      'action': action, //php function to do        'ab': ab, //value of input }, 

Then the action start and the code excecuted is this:

function my_create_posts_search($  name) {  //Pagination for posts  $  response = '';  $  paged = (int) (!is_null($  _POST['clicked_times'])) ? $  _POST['clicked_times'] : 0;   $  postsPerPage = 18;  $  postOffset = $  paged * $  postsPerPage;   $  args = array(     'posts_per_page'  => $  postsPerPage, //pagination     'offset'          => $  postOffset, //pagination     'category'        => 42, //post category     's'               => $  name, //value of input     'orderby'         => 'date',     'order'           => 'DESC',  );  ... other things... } 

Everything works perfectly expcet when I would like to search by Post Tags.

How can I implement this feature?

I hope my code will help you. Thanks!

Local Search Techniques (Local Optimality)

I am currently reading about local search techniques. I understand that local search algorithms tend to get stuck in local optima and therefore usually do not find globally optimal solutions. Thus, there are more sophisticated approaches that enable us to leave local optima and may improve the overall solution quality (e.g. simulated annealing or genetic algorithms). What I’m thinking about is the following: As far as I understand it, the simplest approaches like hill-climbing (best-fit) are at least guaranteed to find locally optimal solutions with regard to the specified neighborhood. Don’t we lose this property when using simulated annealing or genetic algorithms? Even for the first-fit version of hill-climbing it is no longer guaranteed to find a local optimum while getting the advantage of a possible runtime reduction. Is it a tradeoff between an increased possibility to reach globally optimal solutions (or a reduced runtime in the first-fit hill-climbing case) and a higher risk of not even getting a locally optimal solution?

Issue of thumbnails in mobile search results snippets [on hold]

Please help me understand how google is picking up images for mobile search results differently for profile pages having the same structure.

Ref URLs:

  • https://www.mckinsey.com/our-people/chris-mulligan

  • https://www.mckinsey.com/our-people/kate-smaje

  • https://www.mckinsey.com/our-people/liz-hilton-segel

  • https://www.mckinsey.com/our-people/werner-rehm

In these webpages, the og: image is different from the one which is visible on the page. For the actual image there is an attribute as itemtype=”schema.org/Person” added to the picture element in the markup. Google is picking up og: image for the first 2 links and actual images for the others. For these search queries:

  1. searching “Chris mulligan” – shows an actual image which is getting displayed in the webpage Chris Results

  2. Searching “Liz Hilton Segel” – shows image given as og: image in the webpage Liz results

  3. Searching “Kate Smaje” – shows the actual image which is inside the page Kate result

  4. Searching “Werner Rehm” – showing the og: image given inside the page. Werner result

The same inconsistency is appearing for other profiles as well.