RE: Wildcard searches

2014-02-06 Thread raghavendra.k.rao
Sorry, but I don't know what exactly you mean by compile from these locations. Do you mean I could download and customize the code? Regards, Raghu -Original Message- From: Allison, Timothy B. [mailto:talli...@mitre.org] Sent: Thursday, February 06, 2014 2:35 PM To: java-user@lucene.apa

RE: Wildcard searches

2014-02-06 Thread raghavendra.k.rao
Thank you, Tim. I have read that ComplexPhraseQueryParser has issues while searching in more than one field. In my case, I need to search the value in multiple fields of each document. Do you think it is possible? Also, could you please direct me to any useful links for ComplexPhraseQueryParse

Wildcard searches

2014-02-05 Thread raghavendra.k.rao
Hi, Can Lucene support wildcard searches such as the ones shown below? Indexed value is "XYZ CORPORATION LIMITED". XYZ CORPORATION LIMI* XYZ CORPORATION *MIT* XYZ *PORAT* LIMI* *YZ CORPO* LIMITE* In other words, the flexibility for the user to provide a wild card at any position, in a situatio

Custom Tokenizer

2013-12-05 Thread raghavendra.k.rao
Hi, I have used StandardAnalyzer in my code and it is working fine. One of the challenges that I face is the fact that, this Analyzer by default tokenizes on some special characters such as hyphen, apart from the SPACE character. I want to tokenize only on the SPACE character. Could you please

RE: How to perform Wildcard search when using WhitespaceAnalyzer?

2013-11-18 Thread raghavendra.k.rao
Jack, I am using WhitespaceAnalyzer while both indexing and searching the data. To avoid the case-sensitive dependency, I ensure that both of them are upper-cased. I generally search against the space separated CONTENTS field for the search terms. Hence while searching, I can imagine Whitespace

How to perform Wildcard search when using WhitespaceAnalyzer?

2013-11-17 Thread raghavendra.k.rao
Hi All, Sorry to repeat this question from my previous mail chain, but I am hoping the modified subject will catch someone's attention - in case they are familiar with this situation. Could any one please suggest if it is possible to perform Leading and / or trailing wildcard searches usin

RE: WhitespaceAnalyzer vs StandardAnalyzer

2013-11-17 Thread raghavendra.k.rao
Hi All, Could any one please suggest if it is possible to perform Leading and / or trailing wildcard searches using WhitespaceAnalyzer? As noted below, WhitespaceAnalyzer works well for my cause, but I need to support wildcard searches. Initial results prove that it isn't possible. BTW, I esca

RE: WhitespaceAnalyzer vs StandardAnalyzer

2013-11-17 Thread raghavendra.k.rao
The solution clicked to me as soon as I sent the email :) The problem was that I was enclosing the search text with double quotes (for PhraseQuery) before providing it to QueryParser and it was getting messed up as double quotes is one of the special characters for Lucene and I guess even the d

RE: WhitespaceAnalyzer vs StandardAnalyzer

2013-11-17 Thread raghavendra.k.rao
Thank you very much, Eric. WhitespaceAnalyzer is going pretty well. I am now trying to search for values with special characters that need escaping for Lucene, but facing some issues. I have used the QueryParser.escape() method in the past with StandardAnalyzer and it worked fine. But now with

WhitespaceAnalyzer vs StandardAnalyzer

2013-11-15 Thread raghavendra.k.rao
Hi, I implemented my Lucene solution using StandardAnalyzer for both indexing and searching. While testing, I noticed that special characters such as hyphens, forward slash etc. are omitted by this Analyzer. In plain English, the requirement is to search for individual words, in Lucene terms S

How to get Total Result count using searchAfter approach

2013-10-17 Thread raghavendra.k.rao
Hi, In my current implementation of Lucene 4.3 where there are millions of indexed records, I do a regular search() and get the topDocs.totalHits as the count of results. As part of this, I store all the results in the session and then let the user paginate through the results. With this, I am

RE: QueryParser stripping off Hyphen from query

2013-10-17 Thread raghavendra.k.rao
Ian - Thank you for your inputs. Regards, Raghu -Original Message- From: Ian Lea [mailto:ian@gmail.com] Sent: Tuesday, October 15, 2013 11:43 AM To: java-user@lucene.apache.org Subject: Re: QueryParser stripping off Hyphen from query If you want to keep hyphens you could try Whites

RE: QueryParser stripping off Hyphen from query

2013-10-14 Thread raghavendra.k.rao
Could you please suggest which Analyzer to use in this case? I haven’t yet explored much with Analyzers. I've always used the StandardAnalyzer. Regards, Raghu -Original Message- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Monday, October 14, 2013 6:38 PM To: java-user@lucene.a

QueryParser stripping off Hyphen from query

2013-10-14 Thread raghavendra.k.rao
Hi, I am using the regular QueryParser to form a PhraseQuery. It works fine, but when it consists of a hyphen, it gets removed, hence resulting in unexpected results. Note: I am NOT using the QueryParser.escape() method before parse() method as it results in a BooleanQuery, while I want a Phra

RE: Multiple Keywords - Regular and Any Order Search

2013-10-13 Thread raghavendra.k.rao
Hi, I found a solution to my earlier question. If I provide search strings in lowercase characters, then it works fine. For eg. if I submit N(abc,corp) instead of N(ABC,CORP) as my search string then it works fine! Although my index strings are all in upper case letters. Got the hint from this

RE: Multiple Keywords - Regular and Any Order Search

2013-10-12 Thread raghavendra.k.rao
The sysout copy-paste got corrupted for some reason previously. Please see below. +org.apache.lucene.queryparser.surround.query.SimpleTermRewriteQuery(unused: )(LUC_FLD_ACTVY_DTLS, ABC, org.apache.lucene.queryparser.surround.query.BasicQueryFactory(maxBasicQueries: 1024, queriesMade: 0)) +org

RE: Multiple Keywords - Regular and Any Order Search

2013-10-12 Thread raghavendra.k.rao
I made some progress and prepared the below syntax. But I don't get any results when I search for "ABC CORP" even though there are matching records. SrndQuery srndQuery = org.apache.lucene.queryparser.surround.parser.QueryParser.parse("(ABC AND CORP)"); Query query = srndQuery.makeLuceneQueryFi

RE: Multiple Keywords - Regular and Any Order Search

2013-10-12 Thread raghavendra.k.rao
Ian, Thank you very much for your valuable inputs. The surround parser sounds very powerful and it just may be the single answer to all what I am looking for. I have been trying hard to find an example for its implementation but haven't been able to find one online. Could you please help? Ind

Multiple Keywords - Regular and Any Order Search

2013-10-10 Thread raghavendra.k.rao
Hi, I have implemented Lucene to search for a single keyword across multiple fields and it works great. I did this by concatenating all the fields into a "contents" field and searching against this field. When I give multiple keywords against this setup, Lucene by default does an OR search, le

PhraseQuery Search

2013-08-02 Thread raghavendra.k.rao
Hi, I have been using the regular Query class to search single keywords. I needed to include hits such as "BANKER" if the user searched for "BANK". To achieve this I used "*" on both sides as *BANK*. Now I need to search for phrases and I am building a PhraseQuery. My question is, is there a w

RE: Searching two words

2013-07-12 Thread raghavendra.k.rao
Uwe, Thank you very much for your suggestions! Raghu -Original Message- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Friday, July 12, 2013 2:02 AM To: java-user@lucene.apache.org Subject: RE: Searching two words Hi, - if you want to search for those both words next to each othe

Searching two words

2013-07-11 Thread raghavendra.k.rao
Hi, When I search two words separated by a space, the search returns results consisting of the two word pattern and also searches the individual words separately. I don't have the code in front of me at the moment to give you my code snippet, but I can tell the following. I use the standard

RE: How to perform Date Range Search

2013-06-27 Thread raghavendra.k.rao
Thank you, Ian. I tried the AND search you suggested and it is working fine. Regards, Raghu IT Compliance Systems Development BARCLAYS 70 Hudson , Jersey City, NJ +1 201 499 6984 (O) +1 917 565 6276 (M) raghavendra.k@barclays.com -Original Message- From: Ian Lea [mailto:ian

How to perform Date Range Search

2013-06-26 Thread raghavendra.k.rao
Hi, I have indexed a database table which has about 70 columns out of which 60 columns have been indexed and the rest have been stored. There are 70 million records in this table. This is a static table and hence I plan to index them at once and then perform the search on these indices. I perf

RE: New Lucene User

2013-06-19 Thread raghavendra.k.rao
Ashwin, Thank you very much for your suggestions. I will take a look at Solr as well. Regards, Raghu -Original Message- From: Ashwin Tandel [mailto:ashwintan...@gmail.com] Sent: Tuesday, June 18, 2013 6:29 PM To: java-user@lucene.apache.org Subject: Re: New Lucene User Raghav, I wo

RE: New Lucene User

2013-06-18 Thread raghavendra.k.rao
Heikki, Thank you very much. I tried it out and the initial results look good. Although I get "java.lang.OutOfMemoryError: Java heap space" when I search for a single TextField over 70 million records. Probably my code needs tuning. I'll research more to figure it out. But this is a great start

New Lucene User

2013-06-17 Thread raghavendra.k.rao
Hi, I have a requirement to perform a full-text search in a new application and I came across Lucene and I want to check if it helps our cause. Requirement: I have a SQL Server database table with around 70 million records in it. It is not a live table and the data gets appended to it on a dai