Consider an update processor - either raw Java or a snippet of JavaScript with the stateless script update processor. The update processor could be hard-coded or take parameters as to which source value to examine and what field to output. It could use a simple regex to extract only IP addresses. And then you could output to multiple fields - one for the raw string for wildcard matches, say, and one as an integer for proximity or range checks.

-- Jack Krupansky

-----Original Message----- From: SolrUser1543
Sent: Monday, May 19, 2014 3:04 PM
To: solr-user@lucene.apache.org
Subject: 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 ?

I dont see any option to make 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.

Reply via email to