You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Rob Outar <ro...@ideorlando.org> on 2003/09/10 19:51:37 UTC

Query question

Hi all,

	I have a field called "echelon" that are assigned to certain files.  Is
there a query I can write that will give me all files that have this field?

	I have tried stuff like echelon:.+*, echelon:*, etc... some give a query
parser exception while others return nothing.

Let me know,

Rob



RE: Query question

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Aha.  You can't do it with a query, unless you add a fixed-value field
to all documents added to your index.
e.g.
field:X

Then you can get all documents by searching for +field:X

Otis

--- Rob Outar <ro...@ideorlando.org> wrote:
> Otis,
> 
> 	Are you referring to this:
> 
> 		How do I retrieve all the values of a particular field that exists
> within
> an index, across all documents?
> 
> I need a query to do it, the only way clients access the index is via
> queries so they cannot write the code in the faq above.
> 
> Thanks,
> 
> Rob
> 
> 
> -----Original Message-----
> From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
> Sent: Wednesday, September 10, 2003 5:05 PM
> To: Lucene Users List
> Subject: Re: Query question
> 
> 
> Go to Lucene FAQ at jGuru.com and search for the word 'all'.
> 
> Otis
> 
> --- Rob Outar <ro...@ideorlando.org> wrote:
> > Hi all,
> >
> > 	I have a field called "echelon" that are assigned to certain
> files.
> > Is
> > there a query I can write that will give me all files that have
> this
> > field?
> >
> > 	I have tried stuff like echelon:.+*, echelon:*, etc... some give a
> > query
> > parser exception while others return nothing.
> >
> > Let me know,
> >
> > Rob
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> lucene-user-help@jakarta.apache.org
> >
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Index commit.lock

Posted by Rociel Buico <bu...@yahoo.com>.
hello,

my index is being accessed by multiple threads, 

and im getting an ioexception saying about commit.lock.

is there any solution to avoid commit.lock?

tia,

buics


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: Query question

Posted by Rob Outar <ro...@ideorlando.org>.
Otis,

	Are you referring to this:

		How do I retrieve all the values of a particular field that exists within
an index, across all documents?

I need a query to do it, the only way clients access the index is via
queries so they cannot write the code in the faq above.

Thanks,

Rob


-----Original Message-----
From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com]
Sent: Wednesday, September 10, 2003 5:05 PM
To: Lucene Users List
Subject: Re: Query question


Go to Lucene FAQ at jGuru.com and search for the word 'all'.

Otis

--- Rob Outar <ro...@ideorlando.org> wrote:
> Hi all,
>
> 	I have a field called "echelon" that are assigned to certain files.
> Is
> there a query I can write that will give me all files that have this
> field?
>
> 	I have tried stuff like echelon:.+*, echelon:*, etc... some give a
> query
> parser exception while others return nothing.
>
> Let me know,
>
> Rob
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Query question

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Go to Lucene FAQ at jGuru.com and search for the word 'all'.

Otis

--- Rob Outar <ro...@ideorlando.org> wrote:
> Hi all,
> 
> 	I have a field called "echelon" that are assigned to certain files. 
> Is
> there a query I can write that will give me all files that have this
> field?
> 
> 	I have tried stuff like echelon:.+*, echelon:*, etc... some give a
> query
> parser exception while others return nothing.
> 
> Let me know,
> 
> Rob
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com