<cfscript>
myQuery=QueryNew("Doc","ID","Score");
// QueryAddRow(myQuery,LuceneResults.size())
// Loop over that list, and call QuerySetCell(Key, Value,
RowNumberStartingFrom1)
</cfscript> 


-----Original Message-----
From: George Abraham [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 9:47 AM
To: CF-Talk
Subject: Re: interacting with java and return a ColdFusion query

Hmm, I am not sure I get what you mean. Sorry for my dullness! Lucene
returns search results in the form of a list like so:
http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Hits.htm
l.
Do I then take that list and transform it into a Query? How do I do
that?

Thanks,
George

On 12/2/05, Katz, Dov B (IT) <[EMAIL PROTECTED]> wrote:
>
> So  you can use #queryNew()# function within CF pages to produce the 
> query result.
>
> -Dov
>
> -----Original Message-----
> From: George Abraham [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 02, 2005 9:27 AM
> To: CF-Talk
> Subject: Re: interacting with java and return a ColdFusion query
>
> Hehehe, I did not even think to explain that I wasn't querying just a 
> database. The Java set of libraries is Lucene and I am querying the 
> index that Lucene has built up for a particular search string. I want 
> to return the result that Lucene generates back to CF in the form of a

> CF query object. I have already done this using a CFX tag, but I need 
> to do some more somersaults within the Java class, so I want to ditch 
> using the CFX tag and use a class that I can query using CreateObject.
>
> Thanks,
> George
>
> On 12/2/05, Robertson-Ravo, Neil (RX)
> <[EMAIL PROTECTED]>
> wrote:
> >
> > I'm lost, what is wrong with <cfquery>?
> >
> >
> >
> > -----Original Message-----
> > From: George Abraham [mailto:[EMAIL PROTECTED]
> > Sent: 02 December 2005 14:17
> > To: CF-Talk
> > Subject: interacting with java and return a ColdFusion query
> >
> > All,
> > I am working with CFMX and a set of Java libraries. I need to code a

> > Java class that can serve as the liaison between CFMX and Java. This

> > class will interact with the Java libraries and return the 
> > information
>
> > to CF in the form of a CF query (using com.allaire.cfx.Query.) I 
> > want to stress that I am not making a Java CFX tag, I am just using 
> > com.allaire.cfx.Query. However I looked through this site (
> >
> > http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/CFXRef_Ja
> > va
> > 2.htm#
> > 1142286)
> > for the methods available for the Query interface and I don't see 
> > any way to actually add a query or to name its columns. This is 
> > possible only through the Request interface. How can I name a CF 
> > query and its columns in a Java class and then return it to CFMX?
> >
> > Hope that makes sense!
> >
> > TIA,
> > George
> >
> >
> >
> >
> >
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225928
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to