Hi Jawahar,
http://search-lucene.com/m/duTpc14AmzV
See Uwe's reply.
Regards
Umesh
PS: I would use search-lucene.com to 1st check if a solution is posted
already. It is really good.
QUOTED UWE's reply
--
To get the second page,
Take:
int hitsPerP
Hi
As long as your code request for 100 results, it definitely return of max
of 100 documents only.
See your code:
TopDocs hits=searcher.search(query, null, *100*);
Regards
Senthil
On Fri, Dec 24, 2010 at 6:10 PM, Jawahar Lal wrote:
> Hi,
>
> I search for an query. Total searched reco
Hi,
I search for an query. Total searched records are 5000. I only shows 100
records on one page. So I passed 100 as nDocs.
I write the code in this way.
IndexSearcher searcher = new IndexSearcher(FSDirectory.open(new
File(path)));
Query query = new QueryParser(Version.
I guess I'm missing the point. The fact that it is stored is irrelevant for
searching. Stored
fields really only govern whether Document.getField("fieldname") returns
anything #after#
the search. You can find out if a field is stored-only by asking
IndexReader.getFields
for UNINDEXED, and you can s
The basic use case is determiniation of rules in regards to building a query.
I've got an application that programmatically builds queries (without any pre
existing knowledge of the contents of the index it is searching). We have a
custom designed analyzer and filter chain. However, it is app
Ah, you didn't mention indexed but unstored in your original message,
just indexed/analyzed
I don't think you can (someone jump in here if I'm wrong, please). The
problem
is that Lucene doesn't require any sort of schema. So if you are perfectly
free to
store a field in one document and NOT st
Yes I have, and after testing each of the various options denoted in
IndexReader.FieldOption, I cannot retrieve fieldnames that are indexed
(analyzed), and unstored. I figured this would be relatively easy to do and I
was simply overlooking something. Is it perhaps not possible to do this?
Jo
Have you looked at IndexReader.getFieldNames()?
Best
Erick
On Thu, Dec 23, 2010 at 3:23 PM, Jordon Saardchit wrote:
> Is there an easy way to retrieve a collection of fields (or field names)
> that are analyzed/tokenized from any given index?
>
> Jordon
>
Is there an easy way to retrieve a collection of fields (or field names) that
are analyzed/tokenized from any given index?
Jordon
-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail:
Hi Umesh,
Thanks for the descriptive answer.
Using your method I can test my custom analyzers without creating an index.
Best Regards,
Lahiru
10 matches
Mail list logo