DocValues for multiple indexes

2014-04-28 Thread Alice Wong
Hello, I have two separate indexes with similar fields. To search them at once I created a IndexSearcher on top of a MultiReader initialized by two readers of these two indexes. And it works well. Since both indexes has a NumericDocValuesField called "id", I used this field both for sorting and r

Re: Detect index changes

2013-10-17 Thread Alice Wong
nized)? When you do a TermQuery(new Term("id", id_to_delete)) > beforehand, does it find the one document you want to delete? > > Can you boil the case down to a small testcase? > > Mike McCandless > > http://blog.mikemccandless.com > > > On Thu, Oct 17, 201

Detect index changes

2013-10-16 Thread Alice Wong
Hello, I am quite confused about the Lucene NRT feature. And there are not many examples out there. My understanding is we can create an DirectoryReader from a IndexWriter. Whenever IndexWriter changes the index, we can use DirectoryReader to detect the changes and recreate DirectoryReader if nec

Re: Associated values for a field and its value

2013-10-04 Thread Alice Wong
Okay, it makes complete sense. Thanks. On Fri, Oct 4, 2013 at 5:15 AM, Michael Sokolov < msoko...@safaribooksonline.com> wrote: > On 10/3/13 6:04 PM, Alice Wong wrote: > > Mike, > > That's an interesting idea. The only drawback is we have to re-parse the > doc

Re: Associated values for a field and its value

2013-10-03 Thread Alice Wong
A and store a different value "1,2" associated with a1 in Lucene. Or there might be a hack for this? Thanks. On Thu, Oct 3, 2013 at 1:49 PM, Michael Sokolov < msoko...@safaribooksonline.com> wrote: > On 10/02/2013 07:12 PM, Alice Wong wrote: > >> Hello, >> >>

Associated values for a field and its value

2013-10-02 Thread Alice Wong
Hello, We would like to index some documents. Each field of a document may have multiple values. And for each (field,value) pair there are some associated values. These associated values are just for retrieving, not searching. For example, a document D could have a field named A. This field has t

Query without Analyzer

2007-09-10 Thread Alice
Hi folks! I'm using Lucene to provide search on my application. The final query is a BooleanQuery with many fields, there are fields where I'll look for the entered keyword and some others to restrict the search, as the id of a category. I read, and seems to be true, that when using Ter

RE: Huge Index

2007-01-11 Thread Alice
-Original Message- From: Ruslan Sivak [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 11 de janeiro de 2007 15:12 To: java-user@lucene.apache.org Subject: Re: Huge Index Alice, If you have a computer that crashes once you put a lot of load on it, I'd say you have bigger problems t

RE: Huge Index

2007-01-11 Thread Alice
ginal Message- From: Grant Ingersoll [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 11 de janeiro de 2007 15:07 To: java-user@lucene.apache.org Subject: Re: Huge Index Hi Alice, Can you define slow (hours, days, months and on what hardware)? Have you done any profiling, etc. to see wher

RE: Huge Index

2007-01-11 Thread Alice
u use multiple threads/machines to index the data into separate indexes, and then combine them? Russ Sent wirelessly via BlackBerry from T-Mobile. -Original Message- From: "Alice" <[EMAIL PROTECTED]> Date: Thu, 11 Jan 2007 13:47:36 To: Subject: Huge Index Hello! I ha

RE: Customized Analyzer

2006-12-06 Thread Alice
e") gives me the info I need to figure out why I am not getting hits. So, if you haven't tried using it yet, I would suggest it. On Dec 6, 2006, at 7:38 AM, Alice wrote: > Going through the javadocs, that’s wath I found out: > > About the positionIncrement of Token.cla

RE: Customized Analyzer

2006-12-06 Thread Alice
Going through the javadocs, that’s wath I found out: About the positionIncrement of Token.class: " Set it (positionIncrement) to zero to put multiple terms in the same position. This is useful if, e.g., a word has multiple stems. Searches for phrases including either stem will match. In this c

RE: Customized Analyzer

2006-12-06 Thread Alice
I'm sorry, I'm not sure about what you're asking me to post, anyway here is my junit test: protected void setUp() throws Exception { super.setUp(); access = ServiceLocator.getAccess(); } public void testSearch() throws Exception { String keyword = "wi

RE: Customized Analyzer

2006-12-05 Thread Alice
tiple tokens associated with it. I believe this should be a pretty common phenomenon with a synonym analyzer. I would look into your Analyzer...my guess is that it has not been perfected. You are indexing and searching with the same analyzer, correct? - Mark Miller Alice wrote: > It does n

RE: Customized Analyzer

2006-12-05 Thread Alice
a-feira, 5 de dezembro de 2006 18:58 To: java-user@lucene.apache.org Subject: Re: Customized Analyzer On Tuesday 05 December 2006 21:37, Alice wrote: > It does not work. > > Even with the synonyms indexed it is not found. So if your text contains "wind" it is not found by the q

RE: Customized Analyzer

2006-12-05 Thread Alice
org Subject: Re: Customized Analyzer On Tuesday 05 December 2006 20:14, Alice wrote: > It returns > content:"(wind window)" That might be the correct representation of a MultiPhraseQuery. So does your query work anyway? It's just that you cannot use QueryParser again to pars

RE: Customized Analyzer

2006-12-05 Thread Alice
Sorry, I forgot to include this information: Doing: token.setPositionIncrement(0); It returns content:"(wind window)" With: token.setPositionIncrement(1); Returns: content:"wind window" I really don't get it.. -Original Message- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: te

Customized Analyzer

2006-12-05 Thread Alice
Hello! I wrote a custom analyzer that has synonyms of some words to help on search. I use the analyzer when searching the user's entered keyword. What is happening that I don't understand why is that when tokens are returned from the synonyms set, the query parser returns the query with

RE: Help on search

2006-11-08 Thread Alice
gh"? There is one other possibility, soundex/metaphone. There's a discussion in Lucene in Action about how to do this. The basic idea is that you index and search on words that "sound like" what's in the document. Whether "sounds like" makes Fred and Frederich equi

RE: Help on search

2006-11-07 Thread Alice
an create rules for wildcarding, you can create rules for stemming By that I mean that if you have a programmatic way to turn "Frederich" into "Fred", you can just index and search on "Fred" equally easily and not have to deal with wildcard complexity. Of course, since I don

Help on search

2006-11-07 Thread Alice
Hello! I am totally new to Lucene and I'm trying to use it with my web application. What I'm doing is reading a table from my database line by line and indexing the columns. I read the users data such as First Name, Last Name, Email and so on. I hava a field by column, such as: firstName=