# Lucene for Patient search

**URL:** <https://talk.openmrs.org/t/lucene-for-patient-search/1941>\
**Category:** Development\
**Created:** [May 21, 2015, 5:48pm UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941 "2015-05-21T17:48:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![shruthidipali](https://talk.openmrs.org/letter_avatar/shruthidipali/32/6_22734026db12803ebb3e059622ac3534.png) [@shruthidipali](https://talk.openmrs.org/u/shruthidipali)\
**Post date:** [May 21, 2015, 5:48pm UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/1 "2015-05-21T17:48:15Z")

</div>

Hi,

Is there any plan to introduce Lucene for Patient search? We have some requirements around searching across address fields/identifiers/names. Full text search capabilities around this would be great.

-Shruthi

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [May 21, 2015, 6:55pm UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/2 "2015-05-21T18:55:26Z")

</div>

Hi Shruthi,

This is not specifically on the roadmap, but it’s an obvious next step following on the fact that openmrs-core 1.11 added lucene searching of concepts (via hibernate-search, I think).

It would be awesome to have lucene-powered patient search across all the demographic-related fields (as a bonus, including the equivalent of the functionality that’s currently in the namephonetics module).

I imagine people would be happy to discuss what this might look like.

---

<div class="post-metadata">

**Author:** ![shruthidipali](https://talk.openmrs.org/letter_avatar/shruthidipali/32/6_22734026db12803ebb3e059622ac3534.png) [@shruthidipali](https://talk.openmrs.org/u/shruthidipali)\
**Post date:** [May 22, 2015, 11:24am UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/3 "2015-05-22T11:24:19Z")

</div>

Thanks Darius.

It would be great to implement this. When would be a good time to talk about this?

-Shruthi

---

<div class="post-metadata">

**Author:** ![michael](https://talk.openmrs.org/user_avatar/talk.openmrs.org/michael/32/15070_2.png) [@michael](https://talk.openmrs.org/u/michael)\
**Post date:** [May 22, 2015, 12:52pm UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/4 "2015-05-22T12:52:37Z")

</div>

> [@shruthidipali](#):
>
> When would be a good time to talk about this?

You already are talking about it, no? 😉

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [May 22, 2015, 6:29pm UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/5 "2015-05-22T18:29:10Z")

</div>

Hi Shruthi,

Monday’s design call is cancelled since it’s a US holiday. Can you share a few bullet points about what the requirement is, and we can discuss on this thread? (And also, confirm that Using openmrs-core 1.11.x is feasible.)

---

<div class="post-metadata">

**Author:** ![shruthidipali](https://talk.openmrs.org/letter_avatar/shruthidipali/32/6_22734026db12803ebb3e059622ac3534.png) [@shruthidipali](https://talk.openmrs.org/u/shruthidipali)\
**Post date:** [May 25, 2015, 5:17am UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/6 "2015-05-25T05:17:11Z")

</div>

Hey Darius,

We are on 1.10.x presently. This feature could be a compelling reason to switch to 1.11.x.

We need to enhance patient search to search by the following,

1. By name
2. By any of the address fields
3. By patient identifier
4. By patient attributes

Lucene sounds like a good option for implementing the above.

-Shruthi

---

<div class="post-metadata">

**Author:** ![frodriguezm17](https://talk.openmrs.org/letter_avatar/frodriguezm17/32/6_22734026db12803ebb3e059622ac3534.png) [@frodriguezm17](https://talk.openmrs.org/u/frodriguezm17)\
**Post date:** [April 11, 2016, 1:36pm UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/7 "2016-04-11T13:36:06Z")

</div>

Hi everyone,

I have the need to implement search functionality for different fields of the patient in the patient search page. According to what you discussed, is this possible?, You already managed to implement that functionality?

I hope you can help me. Thanks

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [April 11, 2016, 1:49pm UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/8 "2016-04-11T13:49:42Z")

</div>

@frodriguezm17, as far as I know nothing actually happened as followup to this thread. (If it did, hopefully someone else can comment!)

---

<div class="post-metadata">

**Author:** ![frodriguezm17](https://talk.openmrs.org/letter_avatar/frodriguezm17/32/6_22734026db12803ebb3e059622ac3534.png) [@frodriguezm17](https://talk.openmrs.org/u/frodriguezm17)\
**Post date:** [April 11, 2016, 2:16pm UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/9 "2016-04-11T14:16:53Z")

</div>

hi @darius

I have the code in eclipse, ready to be modified, you think, can you help to add some field of the patient in the search?

---

<div class="post-metadata">

**Author:** ![hariniparth](https://talk.openmrs.org/letter_avatar/hariniparth/32/6_22734026db12803ebb3e059622ac3534.png) [@hariniparth](https://talk.openmrs.org/u/hariniparth)\
**Post date:** [April 15, 2016, 9:31pm UTC](https://talk.openmrs.org/t/lucene-for-patient-search/1941/10 "2016-04-15T21:31:51Z")

</div>

Hi Shruthi, I am starting to work on drug order module allowing to order both individual drug order/s as well as drugs which are a part of a standard disease treatment plan. Here are the snapshots

Continuing the discussion from [Feedback for UI design of Drug Order Entry module? (Order Sets?)](https://talk.openmrs.org/t/feedback-for-ui-design-of-drug-order-entry-module-order-sets/5409/10):

Could you please confirm if Bahmni is still using the 1.11x model ? [http://resources.openmrs.org/datamodel/](http://resources.openmrs.org/datamodel/)

I was informed that a few months earlier. Since I am getting started with it now, just want to verify. Also, could you please suggest where do I start working from.
