Question: I'm trying to find if there's a way to search in lucene to say find all documents where there is at least one word that does not match a particualar word.

E.g. I want to find all documents where there is at least one word besides "test". i.e. "test" may or may not be present but there should be at least one word other than "test". Is there a way to do this in Lucene?

thanks,
Purushotham

Answer: 
Neither Python or php have built-in "mutators". You can simply write multiple lines, like

```
a = list(range(5))
a.remove(2)
a.remove(3)

```

If you want to generate a new list, copy the old one beforehand:

```
a = list(range(5))
b = a[:]
b.remove(2)

```

Note that in most cases, a singular call to `remove` indicates you should have used a [`set`](http://docs.python.org/library/stdtypes.html#set) in the first place.
To remove multiple mutations on lists as you want to do on your example, you can do : 

```
a = range(5)
a = [i for j, i in enumerate(a) if j not in [2, 3]]

```

a will be [0, 1, 4]