# Mass actions on search results

**URL:** https://meta.discourse.org/t/mass-actions-on-search-results/27567
**Category:** Feature
**Tags:** bulk-actions
**Created:** [14.Апрель.2015 17:47:33 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567 "2015-04-14T17:47:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![lisajill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisajill/32/32289_2.png) [@lisajill](https://meta.discourse.org/u/lisajill)
#### Post date: [14.Апрель.2015 17:47:34 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/1 "2015-04-14T17:47:34Z")

</div>

I’d like to request the ability to perform bulk edits on search results. Our particular use case is that I need to be able to search for keywords and mass add tags to posts (preferably without changing existing tags on those touched posts).

I can imagine there would be other use cases as well…

Thanks!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [14.Апрель.2015 18:28:05 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/2 "2015-04-14T18:28:05Z")

</div>

I think that ties pretty well with the feature for a full search page.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [14.Апрель.2015 23:39:23 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/3 "2015-04-14T23:39:23Z")

</div>

Which you can do now 🙂

[https://meta.discourse.org/search?search=tags](https://meta.discourse.org/search?search=tags)

I will be improving fullpage search but there is an initial bit of work checked in

---

<div class="post-metadata">

### Author: ![lisajill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisajill/32/32289_2.png) [@lisajill](https://meta.discourse.org/u/lisajill)
#### Post date: [15.Апрель.2015 14:00:53 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/4 "2015-04-15T14:00:53Z")

</div>

What version does that come in, @sam? On our installation I get:

> The page you requested doesn’t exist or is private.

On version 1.3.0.beta5.

Thanks!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [15.Апрель.2015 14:07:47 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/5 "2015-04-15T14:07:47Z")

</div>

It should exist there. It does on our staging environment which is 1.3.0-beta5

---

<div class="post-metadata">

### Author: ![lisajill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisajill/32/32289_2.png) [@lisajill](https://meta.discourse.org/u/lisajill)
#### Post date: [15.Апрель.2015 14:08:45 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/6 "2015-04-15T14:08:45Z")

</div>

I can’t get to it- full admin account.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [15.Апрель.2015 14:13:06 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/7 "2015-04-15T14:13:06Z")

</div>

Do you see a green smiley or red smiley on the Version area in the Admin area? As we’re having a weird issue with our Prod instance. We are on 1.3.0.beta4, but it shows 1.3.0.beta5 with a red smiley. Our staging environment is 1.3.0.beta5 with a green smiley.

And our Prod instance has  
`<meta name="generator" content="Discourse 1.3.0.beta4 - https://github.com/discourse/discourse version a6d72099b4a58ec34b49f77c27769433a220baed">`

Staging instance (where it does work) has  
`<meta name="generator" content="Discourse 1.3.0.beta5 - https://github.com/discourse/discourse version 4ea33608a486eba0f619cc84c2b15de3922a9032">`

---

<div class="post-metadata">

### Author: ![lisajill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisajill/32/32289_2.png) [@lisajill](https://meta.discourse.org/u/lisajill)
#### Post date: [15.Апрель.2015 14:15:41 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/8 "2015-04-15T14:15:41Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/7/1/713a63fafd4e4df762e8a7af60fd2f113efbf2be.png)

red smiley. 🙂

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [15.Апрель.2015 14:19:40 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/9 "2015-04-15T14:19:40Z")

</div>

Okay, what does your meta generator tag say when you view source? My guess is you really are on 1.3.0.beta4

---

<div class="post-metadata">

### Author: ![lisajill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisajill/32/32289_2.png) [@lisajill](https://meta.discourse.org/u/lisajill)
#### Post date: [15.Апрель.2015 14:31:50 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/10 "2015-04-15T14:31:50Z")

</div>

```
<meta name="generator" content="Discourse 1.3.0.beta4 - https://github.com/discourse/discourse version c5059682ecd2b7cff39b09f01c7ff42dcc2c7b16">

```

You are correct. Thank you - very helpful. 🙂

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [27.Июль.2015 09:37:21 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/11 "2015-07-27T09:37:21Z")

</div>

Just a note, with a major refactoring we had to do on search, as a casualty batch select is now lost. you can still pass secret query params to do this, but search is much more like google now.

---

<div class="post-metadata">

### Author: ![lisajill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisajill/32/32289_2.png) [@lisajill](https://meta.discourse.org/u/lisajill)
#### Post date: [27.Июль.2015 14:17:57 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/12 "2015-07-27T14:17:57Z")

</div>

This is a huge bummer, @sam - when can we expect to re-gain this feature?

To be clear this is an important, regular-use feature for us.

Thanks.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [27.Июль.2015 20:59:33 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/13 "2015-07-27T20:59:33Z")

</div>

You can still do this.

[Discourse Meta](https://meta.discourse.org/?search=twig) but yeah it is not ideal.

It is very hard to fit the concept of “mass actions” on to a list that returns posts. Thinking about this.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27.Июль.2015 22:18:56 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/14 "2015-07-27T22:18:56Z")

</div>

I don’t think it’s so hard – have a left column with a selection present for staff / admins. I can think of lots of actions where “search + take staff action on results” would be useful.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [27.Июль.2015 23:04:38 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/15 "2015-07-27T23:04:38Z")

</div>

Except all bulk actions today deal with Topics, not Posts. The new Full Page Search returns both Topics and Posts, so now Bulk Actions has to learn about posts and potentially react differently (such as, find its topic ID and act on that instead).

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27.Июль.2015 23:22:06 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/16 "2015-07-27T23:22:06Z")

</div>

> [@cpradio](#):
>
> The new Full Page Search returns both Topics and Posts

I strongly disagree with this @sam we should always return at the “page” level, e.g. topics.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [27.Июль.2015 23:25:42 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/17 "2015-07-27T23:25:42Z")

</div>

> [@codinghorror](#):
>
> I strongly disagree with this @sam we should always return at the “page” level, e.g. topics.

We always return a grouped search result, picking at most 1 post from each topic.

But its crazy to suggest that we link these entities **always** to post #1, even if the text is in post #78.

Search returns a list of posts, no two ways about it.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27.Июль.2015 23:36:57 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/18 "2015-07-27T23:36:57Z")

</div>

> [@sam](#):
>
> We always return a grouped search result, picking at most 1 post from each topic.

I see – this is fine – @cpradio implied it would be a bunch of random posts as search results.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [28.Июль.2015 11:42:14 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/19 "2015-07-28T11:42:14Z")

</div>

> [@codinghorror](#):
>
> I see – this is fine – @cpradio implied it would be a bunch of random posts as search results.

Sorry, wasn’t my intent. I’m glad that we’re all on the same page now though 😄

I should also mention, that I would also find value in bulk actions being permitted on search results, but I also realize challenges must be overcome to make that work.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [27.Август.2015 01:55:28 UTC](https://meta.discourse.org/t/mass-actions-on-search-results/27567/20 "2015-08-27T01:55:28Z")

</div>

This is now implemented per:

[https://github.com/discourse/discourse/commit/5865bd2abbac66e1ef5b475b491a2358a1d9d610](https://github.com/discourse/discourse/commit/5865bd2abbac66e1ef5b475b491a2358a1d9d610)

There are 2 caveats that I would like to address

1. A “select all” “deselect all” button
2. (Long term) allow search to … not be capped … at 50 and keep loading stuff.

This 50 cap makes “super ultra huge” bulk selection very annoying.

[Следующая страница](https://meta.discourse.org/t/mass-actions-on-search-results/27567.md?page=2)
