Hi, I have a large index of documents of fields "id" "name" and few
other.
while querying i do want to exclude a list of ids i passed in.
for this what i use is
Query query = new BooleanQuery();
for (int i=0; i
Hi, I have a large index of documents of fields "id" "name" and few
other.
while querying i do want to exclude a list of ids i passed in.
for this what i use is
Query query = new BooleanQuery();
for (int i=0; i
the BooleanClauses
> you were creating), which corresponds to a bit to turn on or
> off in your Filter.
>
> Also see CachingWrapperFilter and ChainedFilter as well.
>
> Best
> Erick
>
> On Thu, Oct 16, 2008 at 2:44 PM, prabin meitei <[EMAIL PROTECTED]
> >wrote:
&
Hi,
if you have the document number then you can get the document by using
searcher = getSearcher();
document = searcher.doc(document number);
Prabin
On Mon, Nov 10, 2008 at 11:03 AM, fernanvi
<[EMAIL PROTECTED]>wrote:
>
> Hello.
> I am trying to obtain a Document to work directly on it.
> I h
Hi,
You can use Boolean query for the same.
Boolean query is meant for having a series of queries with boolean operators
defined.
For eg.
lets say you have 3 diff queries A, B, C and you want a final query which
behaves as A && (B || C)
BooleanQuery query = new BooleanQuery();
BooleanQuery te
Hi,
>From whatever you have written you are trying to write a query
*word1 AND stopword AND word2
*this means that the result should contain all of word1, word2 and the
stopword.
Since you have already removed the stopword during index time you will never
find any document matching your query. (th
Hi,
Try using Boolean Query. You can effectively use boolean operators using
it.
make seperate queries for each field.
Boolean query is meant for having a series of queries with boolean operators
defined.
For eg.
lets say you have 3 diff queries A, B, C and you want a final query which
behav
Hi,
You can use MUST an the end.
Using your code use as
codisFiltre="XX07_04141_00853#XX06_03002_00852#UX06_07019_02994"
String[] codi =codisFiltre.split('#');
*finalFilter = new BooleanFilter();*
booleanFilter = new BooleanFilter();
for (int i = 0; i < codi.length; i++) {
boo
try manually escaping the search string, adding "\" in front of the special
characters. (you can do this easily by using string replace)
This will make sure that your query contains the special characters
Prabin
toostep.com
On Wed, Dec 3, 2008 at 12:03 PM, Ravichandra <
[EMAIL PROTECTED]> wrote:
> or
> how to make Standardanalyzer not to generate tokens based on these special
> chrecters.
>
> Thanks
> Ravichandra
>
>
> prabin meitei wrote:
> >
> > try manually escaping the search string, adding "\" in front of the
> > special
> > c
2008 at 4:36 PM, Ravichandra <
[EMAIL PROTECTED]> wrote:
>
> It worked out well.
> Thanks
>
> Is there any way that we can use standardAnalyzer and tell it not generated
> tokens out of this?
>
> Thanks
> Ravichandra
>
>
> prabin meitei wrote:
> &g
; //boost this query by factor of 3
query.add(termQ, Occur.SHOULD);
This will make sure that any document matching creator with user will be
given more boost.
Prabin Meitei
toostep.com
On Thu, Dec 11, 2008 at 8:52 PM, Dalvi, Rajesh <[EMAIL PROTECTED]> wrote:
> Hello,
>
&
Hi, While constructing the query give the query string in quotes.
eg: query = queryparser.parse("\"-2 word\"");
Prabin meitei
toostep.com
On Thu, Dec 11, 2008 at 10:37 PM, Darren Govoni <[EMAIL PROTECTED]> wrote:
> I'm hoping to do this with a simple
whitespace analyzer will tokenize on white space irrespective of quotes. Use
standard analyzer or keyword analyzer.
Prabin meitei
toostep.com
On Thu, Dec 11, 2008 at 11:28 PM, Darren Govoni wrote:
> I'm using Luke to find the right combination of quotes,\'s and
> analyzers.
&g
is the text you are indexing?? Let me also just check at
my end.
Prabin meitei
toostep.com
On Fri, Dec 12, 2008 at 6:14 PM, Darren Govoni wrote:
> Tried them all, with quotes, without. Doesn't work. At least in Luke it
> doesn't.
>
> On Fri, 2008-12-12 at 07:03 +053
try to construct a query like :
BooleanQuery mainquery = new BooleanQuery();
BooleanQuery query1 = new BooleanQuery();
BooleanQuery query2 = new BooleanQuery();
BooleanQuery query3 = new BooleanQuery();
queryParser = new QueryParser("title", new StandardAnalyzer());
query1 = queryParser.parse(
As far as I have encountered the best and simplest option is to use date
time as string (mmddHHmmss or mmdd) as per your requirement.
Prabin
toostep.com
On Tue, Jan 13, 2009 at 2:37 PM, Ganesh wrote:
> I am indexing and storing date time with minute resolution. I need to do
> date range
Hi,
I have an index in which documents are inserted with different boost
during indexing.
eg.
doc1 has boost 5.64
doc2 has boost 5.25
doc3 has boost 5.10
doc4 has boost 4.8
doc5 has boost 4.4
doc6 has boost 4.0
and so on... some documents even having boost only 1.0
when i search the index for a
Thanks to all for the replies. I checked with luke and documents with
different index time boosting (not much different) has same fieldNorm. I
think that is causing the search hits to have same score.
As Andrzej suggested i checked the rounding error caused by encoding. The
result really surprises
Hi,
I am trying to search from an idlist (string containing comma seperated
numeric values)
eg:
QueryParser vParser = new QueryParser("idlist", new AlphanumAnalyzer()); //
analyzer using custom lettertokenizer which tokenize nuber also. class is
given below.
Query q = vParser.parse("55"); // exa
Hi,
I wanted to make use of a range query to find out data within the range.
eg. minexp : 3 maxexp: 7 if a persons exp: is between 3 and 7 then I can get
his details.
The problem is that if in the index the minexp or the maxexp is null/ empty
i don't want to use the range query for the field whi
Hi,
I am trying to retreive documents from an index. Each document has a date
field and other fields.
while making a seach i want to give some extra boost to the more recent
items (as per the date field)
How can I go about it?
Thanks in advance
Prabin
gt; discussed at some length. That'll give you a much faster
> answer...
>
> See http://wiki.apache.org/lucene-java/MailingListArchives
>
> On Dec 19, 2007 4:50 AM, prabin meitei <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I am trying to retreive documents fro
t; Might it be useful to reopen a thread on the topic?
>
> Brian
>
> -Original Message-
> From: prabin meitei <[EMAIL PROTECTED]>
> Sent: Wednesday, December 19, 2007 11:23 PM
> To: java-user@lucene.apache.org
> Subject: Re: Giving boost to a more recent
Hi ,
I want to construct a query from string. how can I do it?? Actually i
saved a query(a boolean query) as string (using query.toString()).
Is there a way to reconstruct the query from the string i saved? How can i
add more clauses to the reconstructed query?
Thanks in advance.
Prabin
re like to know if there's a way. You could
> certainly store the original query if you were taking user input and
> parsing it...
>
> Best
> Erick
>
> On Jan 16, 2008 4:22 AM, prabin meitei <[EMAIL PROTECTED]> wrote:
>
> > Hi ,
> >I want to construct
re somehow programmatically
> > constructing the query and therefore can't just
> > store the original string. I'd *always* store the
> > original rather than a processed query if I could,
> > just on general principles.
> >
> > What is it that you're tr
Hi, I want to give different levels of negative boost (reduce the score) to
documents for different matching queries. How it can be done?? Googling I
found out this link
http://wiki.apache.org/jakarta-lucene/CommunityContributions but it just
gives the option of giving single level negative boos
terms.
>
> What is the end goal of what you are trying to find? Perhaps there
> are some alternatives.
>
> -Grant
>
> On Jan 31, 2008, at 2:49 PM, prabin meitei wrote:
>
> > Hi, I want to give different levels of negative boost (reduce the
> >
29 matches
Mail list logo