# Newbie questions

**URL:** <https://discuss.elastic.co/t/newbie-questions/13054>\
**Category:** Elasticsearch\
**Created:** [August 3, 2013, 1:16pm UTC](https://discuss.elastic.co/t/newbie-questions/13054 "2013-08-03T13:16:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janno\_Jarv](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Janno\_Jarv](https://discuss.elastic.co/u/Janno_Jarv)\
**Post date:** [August 3, 2013, 1:16pm UTC](https://discuss.elastic.co/t/newbie-questions/13054/1 "2013-08-03T13:16:41Z")

</div>

Hi!

I just started experimenting with ElasticSearch and everything is still  
very overwhelming.

So I was hoping that maybe somebody can point me to right direction with  
these questions.

1. My document contains \*Url \*and \*Content \*fields. I have two lists, one  
containing ~1000 domain names and another with ~5000 words/phrases that I  
would like to act as stop words. For example, if I do a search and document  
and its Url or Content contains any of these excludes I don't want it to  
return in search results.

2. What is the best way to accomplish numeric value search within text? For  
example, I have text "Facebook Now Has 1.15 Billion Monthly Active Users".  
I would like to search 1 500 000 000 and same thing with ranges also, like  
1 500 000 000 - 2 000 000 000. Can it be done withing text field using some  
kind of special number analyzer and tokenizer? Or I should extract all  
numeric values first, store as an array in separate field and then use  
number range filter.

Thanks!  
Janno

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Janno\_Jarv](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Janno\_Jarv](https://discuss.elastic.co/u/Janno_Jarv)\
**Post date:** [August 3, 2013, 1:55pm UTC](https://discuss.elastic.co/t/newbie-questions/13054/2 "2013-08-03T13:55:21Z")

</div>

Just found OpenNLP plugin for Elasticsearch - it can detect entites like  
mone, location, date etc and store in separate fields for filtering .

Janno

laupäev, 3. august 2013 16:16.41 UTC+3 kirjutas Janno Järv:

> Hi!
> 
> I just started experimenting with Elasticsearch and everything is still  
> very overwhelming.
> 
> So I was hoping that maybe somebody can point me to right direction with  
> these questions.
> 
> 1. My document contains \*Url \*and \*Content \*fields. I have two lists, one  
> containing ~1000 domain names and another with ~5000 words/phrases that I  
> would like to act as stop words. For example, if I do a search and document  
> and its Url or Content contains any of these excludes I don't want it to  
> return in search results.
> 
> 2. What is the best way to accomplish numeric value search within text?  
> For example, I have text "Facebook Now Has 1.15 Billion Monthly Active  
> Users". I would like to search 1 500 000 000 and same thing with ranges  
> also, like 1 500 000 000 - 2 000 000 000. Can it be done withing text field  
> using some kind of special number analyzer and tokenizer? Or I should  
> extract all numeric values first, store as an array in separate field and  
> then use number range filter.
> 
> Thanks!  
> Janno

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 5, 2013, 7:39am UTC](https://discuss.elastic.co/t/newbie-questions/13054/3 "2013-08-05T07:39:09Z")

</div>

Hey,

first, did you see the uaxurlemail tokenizer:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Also, if you do not want to return certain documents in your search  
results, it might make more sense, not to index them at all...

A short note about then OpenNLP plugin: I have merely written this as a  
test balloon in order to find out if I could - there are several reasons,  
why NLP is more likely a pre indexing step (at least the way how I  
implemented it, there are deeper lucene integrations like the UIMA one,  
where it might be useful to integrate it into elasticsearch).

a) The model takes up a lot of RAM, which will be duplicated for each node.  
b) You have to shutdown your cluster, if you want to update your model  
c) You have to shutdown your cluster, if you want to update your opennlp  
libraries

Last, the OpenNLP plugin does not help you with your second requirement I  
think (at least I did not intend to do that 😉

--Alex

On Sat, Aug 3, 2013 at 3:55 PM, Janno Järv [jannojarv@gmail.com](mailto:jannojarv@gmail.com) wrote:

> Just found OpenNLP plugin for Elasticsearch - it can detect entites like  
> mone, location, date etc and store in separate fields for filtering .
> 
> Janno
> 
> laupäev, 3. august 2013 16:16.41 UTC+3 kirjutas Janno Järv:
> 
> > Hi!
> > 
> > I just started experimenting with Elasticsearch and everything is still  
> > very overwhelming.
> > 
> > So I was hoping that maybe somebody can point me to right direction with  
> > these questions.
> > 
> > 1. My document contains \*Url \*and \*Content \*fields. I have two lists,  
> > one containing ~1000 domain names and another with ~5000 words/phrases that  
> > I would like to act as stop words. For example, if I do a search and  
> > document and its Url or Content contains any of these excludes I don't want  
> > it to return in search results.
> > 
> > 2. What is the best way to accomplish numeric value search within text?  
> > For example, I have text "Facebook Now Has 1.15 Billion Monthly Active  
> > Users". I would like to search 1 500 000 000 and same thing with ranges  
> > also, like 1 500 000 000 - 2 000 000 000. Can it be done withing text field  
> > using some kind of special number analyzer and tokenizer? Or I should  
> > extract all numeric values first, store as an array in separate field and  
> > then use number range filter.
> > 
> > Thanks!  
> > Janno
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:23am UTC](https://discuss.elastic.co/t/newbie-questions/13054/4 "2017-07-06T02:23:01Z")

</div>


