Lucene change field values to wrong ones when indexing

2006-12-14 Thread Java Programmer
Hello, I have problem with my search code - i try to index some data with searching simultanously. Everything goes fine till some number of data are indexed then my fields are bugged. Eg. I have field with title indexed as "Nowitzki führt "Mavs" zum ersten Heimsieg" and inner id "15" (not doc id,

Writing and searching same time

2006-11-29 Thread Java Programmer
Hello, I have trouble with writing and searching on lucene index same time, all I did so far is making a class which has 2 methods: private String indexLocation; public void addDocument(int id,String title, String body) throws IOException{ IndexWriter indexWriter = new Ind

Return all distinct values

2006-03-30 Thread Java Programmer
Hello, I created small Lucene's application which stores lot of my users infomation, on of it is zipcode in numeric format eg. 50501, 63601 - zip codes are stored in Text fields so they are fully searchable what I want now to do is getting all unique zipcodes which was stored so far. Something like

Re: Grouping results by choosen field

2006-03-21 Thread Java Programmer
On 3/17/06, Java Programmer <[EMAIL PROTECTED]> wrote: > > Hello, > I tried to search myself for soultion, but without any good result, so I want > to ask group. > My problem concerns result grouping, the best example will be Google search > where you have results sorte

Grouping results by choosen field

2006-03-17 Thread Java Programmer
Hello, I tried to search myself for soultion, but without any good result, so I want to ask group. My problem concerns result grouping, the best example will be Google search where you have results sorted by relevance, and also grouped by domain (they have little indent/margin). In my project I wan

Re: Searching in paths

2006-03-15 Thread Java Programmer
Reply to myself hate this :( What about such solution: Split path like string into smaller tokens and index them as seperate words eg: #Top/World/Poland/# #Top/World/# #Top/# so if I ask about word #Top/# I will get all the results for this category, without making so many boolean queries. Is the

Re: Searching in paths

2006-03-15 Thread Java Programmer
On 3/14/06, Mordo, Aviran (EXP N-NANNATEK) <[EMAIL PROTECTED]> wrote: > You need to index the field as a keyword, or use an analyzer that will > not strip the / from the string > > Aviran > http://www.aviransplace.com Field is indexed as Keyword, I was using StandardAnalyzer(), but currently I try

Searching in paths

2006-03-14 Thread Java Programmer
Hello, I have problem with indexing / quering paths eg I put "/home/users/apache/txt/qqq__docu.txt" in field called "path", I wanted to submit query to find all documents which are provided by my user apache, so i tried to query Lucene as AND path:/home/users/* but not results were find by such que

Hitmaps of results (number of results for category/filter or groupping results)

2006-02-24 Thread Java Programmer
Hello, I'm quite new to Lucene but I pretty amazed with her abilities. My question consider something called commonly as "hitmap" is it possible to do it in Lucene, maybe someone did it already, or maybe even it is built-in? By term hitmap we describe e.g. ability to group results into category, fo

Speedup indexing process

2006-02-17 Thread Java Programmer
Hi, Maybe this question is trivial but I need to ask it. I've some problem with indexing large number of documents, and I seek for better solution. Task is to index about 33GB text data CSV (each record about 30kB), it possible of course to index these data but I'm not very happy with timings (abou