Re: Indexing & Searching Geometries ( MultiLine & MultiPolygon )

2020-10-02 Thread thturk
Thank you for your fast response. Yes i have tired this. Actually also There is directly polygon created from geojson recommend me to do dame. Because its returns Polygon Array But is it the Most efficient method if indexing spatial data ? Ana same For MultiLine They are also type of Line Arrays

Indexing & Searching Geometries ( MultiLine & MultiPolygon )

2020-10-02 Thread thturk
Hello Forum, I want to create a Reverse Geocode service for data i have in this data set there is Points, Lines, MultiLines, Polygons and MultiPolygons some how i was able to Index Point, Line And Poligon And created search queries for those indexes .But i can not understand how i will index Oth

RE: Why does Lucene 7.4.0 commit() Increase Memory Usage x2

2019-04-05 Thread thturk
Thank you for all answers. The basic solution was commit rarely with an Scheduled Task or manually commit and keep heap size to minimun to GC run often and parallelly to release Memory Usage . -- Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html ---

Re: Why does Lucene 7.4.0 commit() Increase Memory Usage x2

2019-04-03 Thread thturk
I have tried Java VisualVM too watch GC status per each commit and relase variables for Reader Writer Searcher. But as result GC working like in photo at below After 16.40 I called GC manully but Heap size didnt

Re: Why does Lucene 7.4.0 commit() Increase Memory Usage x2

2019-04-02 Thread thturk
I am watching via task manager. Now i tired to handle this with hard coded way. I create new index and with commit in small index cost low memory. but i dont think that its good way to do this. Its getting harder to manage indexes. -- Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-U

Why does Lucene 7.4.0 commit() Increase Memory Usage x2

2019-03-31 Thread thturk
Hello, -For a while i am tring to figure out why ram usage incease x2 than before after commit one single document. -Lucene Version 7.4.0 -Writer Directory FSDirectory -Reader Directory MMapDirectory -I create new IndexWriter instance per update, add, delete and commit after each operations. -Af

Release the RAM

2018-10-25 Thread thturk
I want to release ram when i want , i have tired to close created reader, ram directory, and searcher given in below; ramDir = new RAMDirectory(FSDirectory.open(indexDir), IOContext.READ); reader = DirectoryReader.open(ramDir); searcher = new IndexSearcher(reader); searcher = null; reader.close()

Re: Create Best Query For My Case

2018-09-06 Thread thturk
problem is that i am getting back all of the results with matches on fieldCity, whether i have a match on fieldText or not, and i want all results to have at least one match on fieldText. What i have now is basically: +city text1 text2 text3. The only term required to match is the city. The rest

Re: Create Best Query For My Case

2018-08-28 Thread thturk
Occur.MUST is working but problem for my case is when Occur.SHOULD wont return any result then total result will be Occur.MUST 's all result which is a huge resultset. I want my query to return all matched with given search and with speed as possible. in my records my speed is slower then it sho

Create Best Query For My Case

2018-08-27 Thread thturk
Hey i am trying to create some queries which should work like "where . and and" in sql. i have tried boolQuery for that purpose eg; *boolQueryBuilder.add(new BooleanClause(new FuzzyQuery(new Term(fieldCity, city), 0), Occur.FILTER)); boolQueryBuilder.add(new BooleanClause(new WildcardQue

RE: Improve Search Speed

2018-08-16 Thread thturk
Thank you for your advice as i researched many people suggest me same things like making better complex queries to get more spesific results . but i didnt excatly get what is more spesifc queries . More indexed fields and put many different kind of boolean queries in it mostly i am using fuzzy

Improve Search Speed

2018-08-15 Thread thturk
Hey i am new in Lucene and i want to search indexes in *100 *ms; FileSize is* 2gb* and indexes are seperated via some type( 6 files ) and there are *20m records* in file i set searcher and reader in the constructor and i have boolean query which include fuzzy query and wildcard query. ev