Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Lucene search Format

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


richa.sud at techblue

Aug 1, 2008, 7:14 AM

Post #1 of 5 (225 views)
Permalink
Lucene search Format

Hi!!

I'm abst new to Lucene.
I'm trying to create a query using Lucene search to get the correct
reference for a folder.
The query is fine if it has to go to the parent folder. But if i try to
reach to the child folder, it throws an error.
For example
Query query = new Query(Constants.QUERY_LANG_LUCENE,
PATH:\"/app:company_home/app:user_homes\"");
This gets me the reference for the parent folder.

However, i'm not able to reach to any user defined folder. I tried various
combinations
like PATH:\"/app:company_home/app:user_homes/app:userfolder\""
or
PATH:\"/app:company_home/app:user_homes/cm:userfolder""
or
PATH:\"/app:company_home/app:user_homes:/cm:userfolder""

I'm sorry if i'm not able to make any sense.

Any help is really appreciated.

Thanks,
Richa
--
View this message in context: http://www.nabble.com/Lucene-search-Format-tp18775247p18775247.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
For additional commands, e-mail: java-user-help[at]lucene.apache.org


ian.lea at gmail

Aug 1, 2008, 7:29 AM

Post #2 of 5 (216 views)
Permalink
Re: Lucene search Format [In reply to]

How are you analyzing the PATH, at indexing and search time? They
need to be the same.
You've got plenty of quotes, some escaped, and other delimiters in there.

It should probably be stored and searched untokenized, without the quotes.


--
Ian.


On Fri, Aug 1, 2008 at 3:14 PM, richa <richa.sud[at]techblue.co.uk> wrote:
>
> Hi!!
>
> I'm abst new to Lucene.
> I'm trying to create a query using Lucene search to get the correct
> reference for a folder.
> The query is fine if it has to go to the parent folder. But if i try to
> reach to the child folder, it throws an error.
> For example
> Query query = new Query(Constants.QUERY_LANG_LUCENE,
> PATH:\"/app:company_home/app:user_homes\"");
> This gets me the reference for the parent folder.
>
> However, i'm not able to reach to any user defined folder. I tried various
> combinations
> like PATH:\"/app:company_home/app:user_homes/app:userfolder\""
> or
> PATH:\"/app:company_home/app:user_homes/cm:userfolder""
> or
> PATH:\"/app:company_home/app:user_homes:/cm:userfolder""
>
> I'm sorry if i'm not able to make any sense.
>
> Any help is really appreciated.
>
> Thanks,
> Richa
> --
> View this message in context: http://www.nabble.com/Lucene-search-Format-tp18775247p18775247.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> For additional commands, e-mail: java-user-help[at]lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
For additional commands, e-mail: java-user-help[at]lucene.apache.org


anshumg at gmail

Aug 1, 2008, 11:47 AM

Post #3 of 5 (206 views)
Permalink
Re: Lucene search Format [In reply to]

Perhaps we could help you with the query formation in case you make your
case a little clear viz. how do you index and what do you search for?

--
Anshum
Naukri Labs!

On Fri, Aug 1, 2008 at 7:44 PM, richa <richa.sud[at]techblue.co.uk> wrote:

>
> Hi!!
>
> I'm abst new to Lucene.
> I'm trying to create a query using Lucene search to get the correct
> reference for a folder.
> The query is fine if it has to go to the parent folder. But if i try to
> reach to the child folder, it throws an error.
> For example
> Query query = new Query(Constants.QUERY_LANG_LUCENE,
> PATH:\"/app:company_home/app:user_homes\"");
> This gets me the reference for the parent folder.
>
> However, i'm not able to reach to any user defined folder. I tried various
> combinations
> like PATH:\"/app:company_home/app:user_homes/app:userfolder\""
> or
> PATH:\"/app:company_home/app:user_homes/cm:userfolder""
> or
> PATH:\"/app:company_home/app:user_homes:/cm:userfolder""
>
> I'm sorry if i'm not able to make any sense.
>
> Any help is really appreciated.
>
> Thanks,
> Richa
> --
> View this message in context:
> http://www.nabble.com/Lucene-search-Format-tp18775247p18775247.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> For additional commands, e-mail: java-user-help[at]lucene.apache.org
>
>


--
--
The facts expressed here belong to everybody, the opinions to me.
The distinction is yours to draw............


richa.sud at techblue

Aug 1, 2008, 10:13 PM

Post #4 of 5 (201 views)
Permalink
Re: Lucene search Format [In reply to]

Dear Anshum,

Thanks for the reply.

I managed to reach to the user folder by the following query :
"PATH:\"/app:company_home/app:user_homes/cm:userfolder\""
It is the string parameter that i'm passing and it does stored the file in
the userfolder.

Thanx
Richa



Anshum-2 wrote:
>
> Perhaps we could help you with the query formation in case you make your
> case a little clear viz. how do you index and what do you search for?
>
> --
> Anshum
> Naukri Labs!
>
> On Fri, Aug 1, 2008 at 7:44 PM, richa <richa.sud[at]techblue.co.uk> wrote:
>
>>
>> Hi!!
>>
>> I'm abst new to Lucene.
>> I'm trying to create a query using Lucene search to get the correct
>> reference for a folder.
>> The query is fine if it has to go to the parent folder. But if i try to
>> reach to the child folder, it throws an error.
>> For example
>> Query query = new Query(Constants.QUERY_LANG_LUCENE,
>> PATH:\"/app:company_home/app:user_homes\"");
>> This gets me the reference for the parent folder.
>>
>> However, i'm not able to reach to any user defined folder. I tried
>> various
>> combinations
>> like PATH:\"/app:company_home/app:user_homes/app:userfolder\""
>> or
>> PATH:\"/app:company_home/app:user_homes/cm:userfolder""
>> or
>> PATH:\"/app:company_home/app:user_homes:/cm:userfolder""
>>
>> I'm sorry if i'm not able to make any sense.
>>
>> Any help is really appreciated.
>>
>> Thanks,
>> Richa
>> --
>> View this message in context:
>> http://www.nabble.com/Lucene-search-Format-tp18775247p18775247.html
>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
>> For additional commands, e-mail: java-user-help[at]lucene.apache.org
>>
>>
>
>
> --
> --
> The facts expressed here belong to everybody, the opinions to me.
> The distinction is yours to draw............
>
>

--
View this message in context: http://www.nabble.com/Lucene-search-Format-tp18775247p18786232.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
For additional commands, e-mail: java-user-help[at]lucene.apache.org


erickerickson at gmail

Aug 2, 2008, 10:53 AM

Post #5 of 5 (183 views)
Permalink
Re: Lucene search Format [In reply to]

I think you're missing the point of the request for more info. What
analyzer do you use at index time? Query time? Do you have any
idea what tokens are actually indexed (try using Luke).

StandardAnalyzer will split your tokens out a lot of different ways, and
you can get things that *look* like matches, especially in a small
test environment.

You may still have to do some escaping, but until you know what
tokens have been indexed you're flying blind.

Best
Erick

On Sat, Aug 2, 2008 at 1:13 AM, richa <richa.sud[at]techblue.co.uk> wrote:

>
> Dear Anshum,
>
> Thanks for the reply.
>
> I managed to reach to the user folder by the following query :
> "PATH:\"/app:company_home/app:user_homes/cm:userfolder\""
> It is the string parameter that i'm passing and it does stored the file in
> the userfolder.
>
> Thanx
> Richa
>
>
>
> Anshum-2 wrote:
> >
> > Perhaps we could help you with the query formation in case you make your
> > case a little clear viz. how do you index and what do you search for?
> >
> > --
> > Anshum
> > Naukri Labs!
> >
> > On Fri, Aug 1, 2008 at 7:44 PM, richa <richa.sud[at]techblue.co.uk> wrote:
> >
> >>
> >> Hi!!
> >>
> >> I'm abst new to Lucene.
> >> I'm trying to create a query using Lucene search to get the correct
> >> reference for a folder.
> >> The query is fine if it has to go to the parent folder. But if i try to
> >> reach to the child folder, it throws an error.
> >> For example
> >> Query query = new Query(Constants.QUERY_LANG_LUCENE,
> >> PATH:\"/app:company_home/app:user_homes\"");
> >> This gets me the reference for the parent folder.
> >>
> >> However, i'm not able to reach to any user defined folder. I tried
> >> various
> >> combinations
> >> like PATH:\"/app:company_home/app:user_homes/app:userfolder\""
> >> or
> >> PATH:\"/app:company_home/app:user_homes/cm:userfolder""
> >> or
> >> PATH:\"/app:company_home/app:user_homes:/cm:userfolder""
> >>
> >> I'm sorry if i'm not able to make any sense.
> >>
> >> Any help is really appreciated.
> >>
> >> Thanks,
> >> Richa
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Lucene-search-Format-tp18775247p18775247.html
> >> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> >> For additional commands, e-mail: java-user-help[at]lucene.apache.org
> >>
> >>
> >
> >
> > --
> > --
> > The facts expressed here belong to everybody, the opinions to me.
> > The distinction is yours to draw............
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Lucene-search-Format-tp18775247p18786232.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> For additional commands, e-mail: java-user-help[at]lucene.apache.org
>
>

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.