NGramPhraseQuery with missing terms

2012-12-18 Thread 김한규
Hi. I am trying to make a NGramPhrase query that could tolerate terms missing, so even if one of the NGrams doesn't match it still gets picked up by search. I know I could use the combination of normal SpanNearQuery and a BooleanQuery, but it requires me to consider every possible pair of terms (

Re: Using GeohashPrefixTree for map clustering

2012-12-18 Thread Neil Ireson
Another stumbling block... I want to be able to return those lat,lng values within the current map viewport/window. This relates to http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4#Sorting_and_Relevancy, here it states "A common spatial requirement is to sort the search results by distanc

Re: Some fixes to typos in documentation

2012-12-18 Thread Steve Rowe
Hi Dima, On Dec 18, 2012, at 2:32 PM, dokondr wrote: > Hi, > Found some typos. In package description: > http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/analysis/package-summary.html?is-external=true#package_description Thanks for reporting these. > OffsetAttribute offsetAtt = addAt

Re: Lock Errors within JBoss Environment

2012-12-18 Thread Andrew Hecox
$ mount ? -Ah On 12/18/2012 05:00 PM, Bowden Wise wrote: > How can one tell if they are using NFS or not? > > > > On Tue, Dec 18, 2012 at 3:26 PM, Ian Lea wrote: > >> Is the index on NFS? There are words in the javadocs warning against >> using NativeFSLockFactory on NFS. >> >> >> -- >> I

Re: Lock Errors within JBoss Environment

2012-12-18 Thread Bowden Wise
How can one tell if they are using NFS or not? On Tue, Dec 18, 2012 at 3:26 PM, Ian Lea wrote: > Is the index on NFS? There are words in the javadocs warning against > using NativeFSLockFactory on NFS. > > > -- > Ian. > > > On Tue, Dec 18, 2012 at 8:02 PM, Bowden Wise wrote: > > Hi Andrew: >

Re: Lock Errors within JBoss Environment

2012-12-18 Thread Ian Lea
Is the index on NFS? There are words in the javadocs warning against using NativeFSLockFactory on NFS. -- Ian. On Tue, Dec 18, 2012 at 8:02 PM, Bowden Wise wrote: > Hi Andrew: > > Thanks for the reply; I am glad to here our approach is also being used out > there. > > In our case, there is al

Re: Lock Errors within JBoss Environment

2012-12-18 Thread Bowden Wise
Hi Andrew: Thanks for the reply; I am glad to here our approach is also being used out there. In our case, there is always only 1 writer. I have added debug output to my log and can see that the index writer is getting closed each time. And yet, I am still seeing the error. I am doing another tes

Re: What is "flexible indexing" in Lucene 4.0 if it's not the ability to make new postings codecs?

2012-12-18 Thread Carsten Schnober
Am 18.12.2012 12:36, schrieb Michael McCandless: > On Thu, Dec 13, 2012 at 8:32 AM, Carsten Schnober > wrote: >> This is a relatively easy example, but how would deal with e.g. >> annotations that include multiple tokens (as in spans), such as chunks, >> or relations between tokens (and token sp

Some fixes to typos in documentation

2012-12-18 Thread dokondr
Hi, Found some typos. In package description: http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/analysis/package-summary.html?is-external=true#package_description In the example code bellow the following corrections are needed: OffsetAttribute offsetAtt = addAttribute(OffsetAttribute.cla

Re: Lock Errors within JBoss Environment

2012-12-18 Thread Andrew Hecox
On 12/18/2012 01:59 PM, Bowden Wise wrote: Hello, I have been getting the following lock error when attempting to open an index writer to add new documents to an index. org.apache.lucene.store.LockObtainFailedException Lock obtain timed out: NativeFSLock@/opt/shared/data/CTXTMNG/PAC_INDEX/lucen

Lock Errors within JBoss Environment

2012-12-18 Thread Bowden Wise
Hello, I have been getting the following lock error when attempting to open an index writer to add new documents to an index. org.apache.lucene.store.LockObtainFailedException Lock obtain timed out: NativeFSLock@/opt/shared/data/CTXTMNG/PAC_INDEX/lucene/aero/prod/index/write.lock Our ingest/ind

Looking for example code: Tokenizer + Analyzer for Russian stemming

2012-12-18 Thread dokondr
> Hello, > I am looking for an example of using Tokenizer + Analyzer (in particular > org.apache.lucene.analysis.ru.RussianAnalyzer) for standalone stemming. > Can't find such an example here: > > http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/analysis/package-summary.html?is-external=t

Lucene 4.0.0 - find offsets for phrase queries

2012-12-18 Thread Vitaly_Artemov
Hi all, Is it possible to find offsets for phrase queries? Thanks, Vitaly

Re: Help needed: search is returning no results

2012-12-18 Thread Ramon Casha
I verified that the index was correct using the app Luke, tested some queries using it then replicated the results via code. It seems I need to refine the token parsing but at least I have something now. Ramon Casha On 18 December 2012 15:50, Ramon Casha wrote: > Hmm ok I got something. > > > R

Re: Help needed: search is returning no results

2012-12-18 Thread Ramon Casha
Hmm ok I got something. Ramon Casha On 18 December 2012 15:44, Ramon Casha wrote: > I converted them to TextField but the result is the same. > > doc.add(new TextField("text", text.toString(), Store.YES)); > > The search always returns an empty array. > > Ramon Casha > > > On 18 December 201

Re: Help needed: search is returning no results

2012-12-18 Thread Ramon Casha
I converted them to TextField but the result is the same. doc.add(new TextField("text", text.toString(), Store.YES)); The search always returns an empty array. Ramon Casha On 18 December 2012 15:35, Jack Krupansky wrote: > Maybe you wanted "text" fields that are analyzed and tokenized, as o

Re: Help needed: search is returning no results

2012-12-18 Thread Jack Krupansky
Maybe you wanted "text" fields that are analyzed and tokenized, as opposed to string fields which are not analyzed and stored and queried exactly as-is. See: http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/document/TextField.html But, show us some of your indexed data and queries th

Re: Help needed: search is returning no results

2012-12-18 Thread Ian Lea
I think you need TextField rather than StringField. See also http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_no_hits_.2BAC8_incorrect_hits.3F -- Ian. On Tue, Dec 18, 2012 at 2:14 PM, Ramon Casha wrote: > I have just downloaded and set up Lucene 4.0.0 to implement a search > faci

Re: What is "flexible indexing" in Lucene 4.0 if it's not the ability to make new postings codecs?

2012-12-18 Thread Michael McCandless
On Thu, Dec 13, 2012 at 10:09 AM, Glen Newton wrote: >>Unfortunately, Lucene doesn't properly index > spans (it records the start position but not the end position), so > that limits what kind of matching you can do at search time. > > If this could be fixed (i.e. indexing the _end_ of a span) I t

Re: What is "flexible indexing" in Lucene 4.0 if it's not the ability to make new postings codecs?

2012-12-18 Thread Michael McCandless
On Thu, Dec 13, 2012 at 8:32 AM, Carsten Schnober wrote: > Am 13.12.2012 12:27, schrieb Michael McCandless: > >>> For example: >>> - part of speech of a token. >>> - syntactic parse subtree (over a span). >>> - semantically normalized phrase (to canonical text or ontological code). >>> - seman

Re: How to update one field(not stored) of an document in lucene 4.0 ?

2012-12-18 Thread Ian Lea
Not possible. You have to replace the whole document. -- Ian. On Tue, Dec 18, 2012 at 9:14 AM, Bo Zhang wrote: > Hi all, > I don't know that how to update one field which is not stored of an > document in lucene 4.0. Can anybody tell me? > > Thanks! > > > > Cheers, > --- > Bob > > > > >

How to update one field(not stored) of an document in lucene 4.0 ?

2012-12-18 Thread Bo Zhang
Hi all, I don't know that how to update one field which is not stored of an document in lucene 4.0. Can anybody tell me? Thanks! Cheers, --- Bob - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For