Restoring the Snapshot taken by Lucene

2016-06-20 Thread Ankit.Murarka
Hello, In my project, we are using Lucene 5.5.0. We took advantage of the Snapshot API (Persistent) to take the snapshot of the indexes which are currently being used in the application. The indexes are stored in the directory. The snapshot takes the snapshot of the indexes and store it in ano

RE: Selective Output fields in Search Result. Lucene 5.5.0

2016-05-16 Thread Ankit.Murarka
Hi, This works great. I kept looking under Searcher and Hits and Document. Reader never striked my mind. Thanks a ton. Regards, Ankit -Original Message- From: Ian Lea [mailto:ian@gmail.com] Sent: 16 May 2016 18:58 To: java-user@lucene.apache.org Subject: Re: Selective Output fiel

Selective Output fields in Search Result. Lucene 5.5.0

2016-05-16 Thread Ankit.Murarka
Hello, I am storing close to 100 fields in a single document which is being indexed. There are million such documents. Lucene version is 5.5.0 During search, I wish to get only 1 field out of these 100 fields as a result. The conventional approach is to get the required hits and get the selecte

Merging Facets Index present in 2 directories in 3rd directory

2016-05-05 Thread Ankit.Murarka
Hi, I am using DirectoryTaxonomyWriter to create facet Indexes. There is 2 process. Process A creates facet indexes in Folder A. Process B creates facet indexes in Folder B. I have a 3rd Process (Merger process), which needs to merge Folder A Facet and Folder B Facet in Folder C. This activity

How to Index Multiple Terms in Analyzing Infix Suggester.

2016-04-27 Thread Ankit.Murarka
Hello, Can I use more than 1 term to create Analyzing Infix Suggester suggest indexes. Till now, the build function accepts only 1 instance of reader and field. Any attempt to add additional field, or append indexes to the directory is giving me an error (Do not share multiple instances of Inde

How to Index Multiple Terms in Analyzing Infix Suggester.

2016-04-27 Thread Ankit.Murarka
Hello, Can I use more than 1 term to create Analyzing Infix Suggester suggest indexes. Till now, the build function accepts only 1 instance of reader and field. Any attempt to add additional field, or append indexes to the directory is giving me an error (Do not share multiple instances of Inde

How to Index Multiple Terms in Analyzing Infix Suggester.

2016-04-26 Thread Ankit.Murarka
Hello, Can I use more than 1 term to create Analyzing Infix Suggester suggest indexes. Till now, the build function accepts only 1 instance of reader and field. Any attempt to add additional field, or append indexes to the directory is giving me an error (Do not share multiple instances of Inde

Problem with Analyzing Infix Suggester for Multiple Indexes.

2016-04-26 Thread Ankit.Murarka
Dear Team, I am on Lucene 5.4.0. We are trying to build Suggestions based on the already Indexed Data. (Say I have indexed field "Content") and the indexes are available on the file server. Now, in order to use the suggestion feature, I am using AnalyzingInfixSuggester to first build the sugg

Problem with Analyzer Infix Suggester and Suggestions on multiple fields.

2016-04-26 Thread Ankit.Murarka
Dear Team, I am on Lucene 5.4.0. We are trying to build Suggestions based on the already Indexed Data. (Say I have indexed field "Content") and the indexes are available on the file server. Now, in order to use the suggestion feature, I am using AnalyzingInfixSuggester to first build the sugg

RAM Directory not Serializable in Lucene 4.4 as well as 5.X

2016-01-07 Thread Ankit.Murarka
Dear Team, I am trying to serialize RAM Directory object but it throws an exception every time. MY use case is to serialize the object and store it in Database for reasons beyond my control. Same also for retrieving the object from database and then putting it into RAM Directory. Need your

RE: Lucene Spatial Implementation for Points within Polygon.

2014-12-24 Thread Ankit.Murarka
Thanks for the suggestions David.. However I am in a fix.. Although I am indexing and searching both using JTS, I am still getting very less hits. I am very sure that points which are indexed, falls inside lot of polygons but hits are not giving me the proper result. For approx. 8 lac polygons,

RE: Distance between 2 points Lucene Spatial

2014-12-22 Thread Ankit.Murarka
Thanks for the suggestion. I am using Lucene Vincenty to find the distance but the output is strange. I cannot figure out how to convert the output to metres/kilo metres. After extensive search on google, I found GeoDesy source code which gives me distance in metres. This is also the implementa

Distance between 2 points Lucene Spatial

2014-12-21 Thread Ankit.Murarka
Dear All, We are using lucene spatial strategy to find out the distance between a pair of Lat/Long. Given a pair of Lat/Long I need to find the near accurate distance between these 2 points. I have used Haversine, LawOfCosines and Vincernity however unable to decide which will provide the bes

Lucene Spatial Implementation for Points within Polygon.

2014-12-21 Thread Ankit.Murarka
Hello Team, We are starting off with Lucene Spatial implementation for some of the use cases: A . Given "N" polygons and "M" points, find how many points lie inside each of the polygon. 1st Approach : For A, we indexed Polygons using WKT and using JtsSpatial strategy. I set the Level at 22 .