Re: Index / Query IP Address as number.

2014-05-19 Thread Jack Krupansky
: Re: Index / Query IP Address as number. I have a text field containing a large piece of mixed text , like : test test 12/12/2001 12345 192.168.1.1 1234324 I need to create a copy field which will capture only all IPs from the text ( may be more than one IP ) . What will be the best way to do

Re: Index / Query IP Address as number.

2014-05-19 Thread SolrUser1543
WordDelimiter to not break down the IP , so as alternative I will use a copy field . -- View this message in context: http://lucene.472066.n3.nabble.com/Index-Query-IP-Address-as-number-tp4136760p4136974.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Index / Query IP Address as number.

2014-05-19 Thread SolrUser1543
index : " /> -- View this message in context: http://lucene.472066.n3.nabble.com/Index-Query-IP-Address-as-number-tp4136760p4136971.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Index / Query IP Address as number.

2014-05-18 Thread Walter Underwood
Use a PatternReplaceCharFilterFactory to map the periods to empty strings, then use a KeywordTokenizer and a string field type. If you want to sort it or do range queries, you might use an integer field. wunder On May 18, 2014, at 12:20 PM, SolrUser1543 wrote: > This question was raised here

Re: Index / Query IP Address as number.

2014-05-18 Thread Jack Krupansky
ult.) -- Jack Krupansky -Original Message- From: SolrUser1543 Sent: Sunday, May 18, 2014 3:20 PM To: solr-user@lucene.apache.org Subject: Index / Query IP Address as number. This question was raised here for a few times , but no final solution was provided . I'am using a combi

Index / Query IP Address as number.

2014-05-18 Thread SolrUser1543
have the IP as num , without breaking it on parts . ( have only 19216813 ) Thanks . -- View this message in context: http://lucene.472066.n3.nabble.com/Index-Query-IP-Address-as-number-tp4136760.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: IP Address as number

2013-02-10 Thread Erick Erickson
Not really, non text fields really don't get an analysis chain. The simplest thing would probably be to use copyField and store it both textually and as a numeric. You could handle that on the indexing side from the client or by writing an update component. But IPv4 addresses are really just 32-b

Re: IP Address as number

2013-02-07 Thread Isaac Hebsh
Small addition: To support query, I probably have to implement an analyzer (query time)... An analyzer can be configured on numeric (i.e non TEXT) field? On Thu, Feb 7, 2013 at 6:48 PM, Isaac Hebsh wrote: > Hi. > > I have to index field which contains an IP address. > Users want to query this f